counter1 해시 - 완주하지 못한 선수 (프로그래머스) https://school.programmers.co.kr/learn/courses/30/lessons/42576 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr from collections import Counterdef solution(participant, completion): a = Counter(participant) - Counter(completion) # Counter({'vinko': 1}) print(a.keys()) # dict_keys(['vinko']) return list(a.keys())[0] collections의 Counter 클래스를 이용한다Counte.. 2025. 1. 14. 이전 1 다음