프로그래머스 - 외계어 사전
문제집 링크 : http://aladin.kr/p/szPra
프로그래머스 URL :
■ 작성 코드
def solution(spell, dic):
s_set = set(spell)
for word in dic:
if set(word) == s_set:
return 1
return 2
반응형
'Programming Test > 문제풀이' 카테고리의 다른 글
[프로그래머스] 32. 중복된 문자 제거 - Python (0) | 2025.02.07 |
---|---|
[프로그래머스] 30. 베스트 앨범 - Python (0) | 2025.02.05 |
[프로그래머스] 29. 의상 - Python (0) | 2025.02.05 |
[프로그래머스] 28. 전화번호 목록 - Python (0) | 2025.02.01 |
[프로그래머스] 27. 완주하지 못한 선수 - Python (0) | 2025.02.01 |