# defaultdict

[Technic] defaultdict, Counter 클래스
딕셔너리는 대부분의 연산이 O(1)에 처리 가능하기 때문에, 특수한 형태의 딕셔너리 객체를 생성할 수 있는 defaultdict, Counter 클래스를 사용하면 코드의 시간 복잡도를 단축할 수 있다.

[Python] collections 라이브러리
데이터 처리를 위한 유용한 자료구조를 포함하고 있는 라이브러리이다.collections 라이브러리는 Counter, deque, defaultDict, namedtuple(), ChainMap 등 다양한 클래스를 제공하지만, 주로 사용하는 Counter, deque,

[2250] Count Number of Rectangles Containing Each Point | Medium | contest 290
남은 두 문제는 저는 풀지 못했습니다.다른 사람들의 코드를 보면서 분석해보겠습니다.Example 1(2,1) 좌표는 두개의 사각형에 포함되고 (1,4)좌표는 1개의 사각형에만 포함되어 2,1을 반환합니다.Example 2쉬워보이겠죠.제한조건을 보기전까진 brutefor

Python Collections
파이썬 Collections의 deque, OrderedDict, defaultdict, Counter, namedtuple

Collections in Python
백준이나 프로그래머스에서 알고리즘 풀이를 보면 collections 모듈을 사용하는 것을 쉽게 볼 수 있다. 딕셔너리와 관련된 특수한 형태의 컨테이너 자료형인 defaultdict, Counter, OrderedDict에 대해 알아보자.
[코드 스니펫]defaultdict의 defaultdict
python으로 코테를 준비하고 있다면 좋아할 수 밖에 없는 defaultdict어느날 defaultdict안에 defaultdict를 선언할 수는 없을까 하고 생각을 했다 그에 대해 정리한 스택오버플로우 글이 있어서 이것을 정리해보았다 이렇게 하면 굳이 list를 쓰
49. Group Anagrams Python3
Given an array of strings strs, group the anagrams together. You can return the answer in any order.An Anagram is a word or phrase formed by rearrangi
[Python] Collections Module(Counter, defaultdict)
Counter Counter Module은 종류별로 카운팅이 필요할 때 사용하는 Module이다. defaultdict Module은 일대다(One-Many) 매핑처럼 하나의 키에 여러 개의 값을 매핑하고 싶을 때 사용하는 Module이다.