====== 전화번호 목록 ====== ===== 풀이 ===== * BOJ의 [[ps:problems:boj:5052]]와 동일한 문제. 풀이는 그쪽 참고. ===== 코드 ===== """Solution code for "Programmers 42577. 전화번호 목록". - Problem link: https://programmers.co.kr/learn/courses/30/lessons/42577 - Solution link: http://www.teferi.net/ps/problems/programmers/42577 """ def solution(phone_book): phone_book.sort() return all(not y.startswith(x) for x, y in zip(phone_book, phone_book[1:])) {{tag>프로그래머스 ps:problems:programmers:Level_2}}