• 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 (880)
    • 🍀 Diary
      • Today I Learned (243)
    • 📈 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 (2)
    • 🖥️ Computer Science
      • Network (7)
      • Database (10)
      • Data Structure (13)

    [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

    [TIL] 신입 개발자 공부/일 45일차

    Published: 2026-02-21
    Updated: 2026-02-22

    TIL

    [TIL] 신입 개발자 공부/일 44일차

    Published: 2026-02-20
    Updated: 2026-02-21

    TIL

    [TIL] 신입 개발자 공부/일 43일차

    Published: 2026-02-13
    Updated: 2026-02-13

    TIL

    [TIL] 신입 개발자 공부/일 42일차

    Published: 2026-02-12
    Updated: 2026-02-12

    TIL