르탄즈 5기
[르탄즈 5기] 1/24 TIL
박매트
2024. 1. 24. 23:47
알고리즘(코딩테스트) 해시 공부
https://wnsgml517.tistory.com/67
[프로그래머스] 해시 - 의상
나의 답 def solution(clothes): clothes.sort() dic = {} num = 0 for value, t in clothes: dic[t]=0 for value, t in clothes: dic[t]+=1 for k in dic: if(dic[k]==1): num+=1 if(len(dic)==1 and num==0): return len(clothes) all_value = pow(2, len(clothes))-1 ch
wnsgml517.tistory.com