일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- greedy
- DP
- 백준
- Python
- programmers
- Algospot
- Math
- 종만북
- C
- String
- BOJ
- graph
- server
- php
- Cleancode
- 따라하며 배우는 C언어
- 인프런
- BFS
- web
- sorting
- dfs
- 생활코딩
- Algorithm
- C언어
- JavaScript
- 정수론
- 따라하면서 배우는 C언어
- BASIC
- 따배씨
- udemy
- Today
- Total
목록Language/Python (2)
몽상실현개발주의

[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(…) ..

1. Iterator Python Doc An object representing a stream of data. Repeated calls to the iterator’s __next__() method (or passing it to the built-in function next()) return successive items in the stream. When no more data are available a StopIteration exception is raised instead. At this point, the iterator object is exhausted and any further calls to its __next__() method just raise StopIteration..