-
None
-
숫자
- 정수형
- 정수(class int)
- 불리언(class bool)
- 정수형
-
시퀀스
- 불변
- 문자열 (class str)
- 튜플 (class tuple)
- 바이트 ( class bytes)
- 가변
- 리스트(class list)
- 불변
-
집합형
- 집합 (class set)
-
매핑
- 딕셔너리(class dict)
-
bool은 엄밀히 따지면 논리 자료형이지만 파이썬에서는 내부적으로 1과 0으로처리되는 int의 서브 클래스다. int는 object의 하위클래스이기도 하기 때문에
object > int > bool 형태를 띤다.
참고자료
github.com/onlybooks/algorithm-interview
onlybooks/algorithm-interview
<파이썬 알고리즘 인터뷰> 95가지 알고리즘 문제 풀이로 완성하는 코딩 테스트. Contribute to onlybooks/algorithm-interview development by creating an account on GitHub.
github.com
'IT > 알고리즘' 카테고리의 다른 글
[Leetcode]234. Palindrome Linked List (0) | 2020.09.25 |
---|---|
[Leetcode]21. Merge Two Sorted Lists (1) | 2020.09.25 |
[Leetcode]819. Most Common Word (0) | 2020.09.18 |
[프로그래머스] 방금 그곡 lv2 (0) | 2020.09.03 |
프로그래머스 N개의 최소공배수 (0) | 2020.07.04 |