Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- server
- 정수론
- graph
- 백준
- C언어
- greedy
- Algospot
- 따라하면서 배우는 C언어
- programmers
- String
- 따라하며 배우는 C언어
- dfs
- BFS
- php
- C
- Cleancode
- web
- sorting
- BOJ
- 인프런
- BASIC
- 종만북
- 따배씨
- DP
- udemy
- JavaScript
- 생활코딩
- Python
- Math
- Algorithm
Archives
- Today
- Total
목록set (1)
몽상실현개발주의

[Python] List / Set / Dictionary 의 시간 복잡도 Python 의 자료형인 List / Set / Dictionary 에서 제공하는 method 의 시간 복잡도를 정리해 보았다. List Operation Example Big-O Note Index l[i] O(1) Store l[i] = 0 O(1) Length len(l) O(1) Append l.append(5) O(1) Pop l.pop() == l.pop(-1) i.pop(i) l.pop(0) O(1) O(N) O(N) Clear l.clear() O(1) l = [] 과 유사 Slice l[a:b] l[:] O(b-a) O(N) Extend l.extend(…) O(len(…)) Construction list(…) ..
Language/Python
2021. 5. 23. 14:55