• Skip to primary navigation
  • Skip to content
  • Skip to footer
Dev Battery Dev Battery Keep your battery charged
    Wonjun Jeong

    Wonjun Jeong

    Backend Developer

    • Korea Republic
    • Email
    • GitHub
  • All Posts (833)
    • 📈 Algorithm
      • Recap (4)
      • LeetCode (116)
      • HackerRank (130)
      • Codeforces (43)
      • Programmers (88)
      • Baekjoon (153)
      • Inflearn (2)
    • 📒 Issue
      • Project (23)
    • 🧑🏻‍💻 Programming
      • DevOps (3)
      • Java (15)
      • Spring (21)
      • FastAPI (0)
      • Vue (1)
      • React (1)
    • 🖥️ Computer Science
      • Network (7)
      • Database (10)
      • Data Structure (13)
    • 🍀 CodeSquad
      • Today I Learned (197)

    [BaekJoon] 11656번: 접미사 배열 (Python)

    Published: 2023-06-09
    Updated: 2023-06-09

    On this page

    • Solution
    • Reference


    Solution

    import sys
    from typing import List
    
    
    def solution(word: str) -> List[str]:
        answer = []
    
        for i in range(len(word)):
            answer.append(word[i:len(word) + 1])
    
        return sorted(answer)
    
    
    s = sys.stdin.readline().rstrip()
    print(*solution(s), sep='\n')
    

    Tags: python, sorting, string

    Categories: Baekjoon

    Published: 2023-06-09
    Updated: 2023-06-09

    Previous Next

    Leave a comment

    You may also enjoy

    [Devops] AWS의 Auto Scaling으로 Scale-out 하여 서버 분산하여 배포

    Published: 2025-08-25
    Updated: 2025-08-31

    devops, aws, auto-scaling, serverless

    [Devops] 맥북(MacOS)을 EC2 서버처럼 써보자! - Cloudflare, DNS

    Published: 2025-06-24
    Updated: 2025-06-24

    devops, cloudflare

    [Project] Vite React 환경에서 이미지 컴포넌트 로딩 최적화 방법

    Published: 2025-05-09
    Updated: 2025-05-12

    movlit, vite, react, image, loading

    [React] Node.js와 npm 설치 후 Vite React 개발 서버 실행 방법

    Published: 2025-05-08
    Updated: 2025-05-08

    react, vite, node, npm