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
- GIT
- 게임
- MongoDB
- mongoose
- game
- Nest.js
- cookie
- OCR
- Bull
- AWS
- MySQL
- class
- 자료구조
- react
- 공룡게임
- dfs
- flask
- typeORM
- Express
- Dinosaur
- Sequelize
- JavaScript
- 정렬
- Python
- TypeScript
- jest
- Queue
- nestjs
- nodejs
Archives
- Today
- Total
목록hash (1)
포시코딩
Hash table(해시 테이블) - Chaining, Linear probing
Chaining 데이터 추가 함수 hash_table = list[0 for i in range(8)] def get_hash(data): return hash(data) def get_address(hash): return hash % 8 def save_data(data, value): hash_key = get_hash(data) hash_address = get_address(hash_key) if hash_table[hash_address] != 0: for i in range(len(hash_table[hash_address])): if hash_table[hash_address][i][0] == hash_key: # 같은 hash의 키로 데이터가 있을 경우 hash_table[hash_add..
자료구조알고리즘/이론
2023. 4. 12. 15:03