[프로그래머스/Python] 후보키(조합/비트연산)
코딩테스트 연습 - 후보키 [["100","ryan","music","2"],["200","apeach","math","2"],["300","tube","computer","3"],["400","con","computer","4"],["500","muzi","music","3"],["600","apeach","music","2"]] 2 programmers.co.kr 1. 조합 from itertools import combinations from collections import Counter def makeTuple(lists, tuples): # lists: 튜플로 변환할 리스트 # tuples: (몇개씩 묶어서 튜플로 만들 것인지) tmp = [] for i in tuples: tmp.append..