Skip to content

Commit

Permalink
2024-04-02
Browse files Browse the repository at this point in the history
  • Loading branch information
kjs254 committed Apr 2, 2024
1 parent 95b4a96 commit e5ef4d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions kjs254/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
| 7μ°¨μ‹œ | 2024.03.01 | κ΅¬ν˜„ | [μΊμ‹œ](https://school.programmers.co.kr/learn/courses/30/lessons/17680) | [#24](https://github.com/AlgoLeadMe/AlgoLeadMe-7/pull/24) |
| 8μ°¨μ‹œ | 2024.03.08 | κ΅¬ν˜„ | [νŠœν”Œ](https://school.programmers.co.kr/learn/courses/30/lessons/64065) | [#30](https://github.com/AlgoLeadMe/AlgoLeadMe-7/pull/30) |
| 9μ°¨μ‹œ | 2024.03.10 | κ΅¬ν˜„ | [λ‰΄μŠ€ ν΄λŸ¬μŠ€ν„°λ§](https://school.programmers.co.kr/learn/courses/30/lessons/17677) | [#33](https://github.com/AlgoLeadMe/AlgoLeadMe-7/pull/33) |
| 10μ°¨μ‹œ | 2024.04.02 | ν•΄μ‹œ | [μ „ν™”λ²ˆν˜Έ λͺ©λ‘](https://school.programmers.co.kr/learn/courses/30/lessons/42577) | [#46](https://github.com/AlgoLeadMe/AlgoLeadMe-7/pull/46) |
---
6 changes: 6 additions & 0 deletions kjs254/ν•΄μ‹œ/μ „ν™”λ²ˆν˜Έ λͺ©λ‘.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def solution(phone_book):
phone_book.sort()
for i in range(len(phone_book)-1):
if phone_book[i+1].startswith(phone_book[i]):
return False
return True

0 comments on commit e5ef4d7

Please sign in to comment.