Python | itertools 활용하기 (product, permulations, combinations)
·
STUDY/파이썬
itertools — Functions creating iterators for efficient loopingThis module implements a number of iterator building blocks inspired by constructs from APL, Haskell, and SML. Each has been recast in a form suitable for Python. The module standardizes a core set...docs.python.orgPython으로 코딩테스트를 풀면서 한번쯤 마주하게 되는 itertools 라이브러리에 대해 정리하고자 한다. - Product데카르트 곱(cartesian product), 중첩된 for 문과 동일관계 대수의 pro..