편집 시간: 2022년 2월 7일 오후 8:28

코드

Algorithm/1920.py at main · Junroot/Algorithm

풀이

집합의 조회는 O(1)기 때문에, 집합을 이용하면된다.