일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 파이썬
- Protocol
- data science
- LeetCode
- Substring with Concatenation of All Words
- shiba
- iterator
- Python Implementation
- kaggle
- 밴픽
- Class
- 운영체제
- 프로그래머스
- 109. Convert Sorted List to Binary Search Tree
- t1
- 시바견
- Convert Sorted List to Binary Search Tree
- 30. Substring with Concatenation of All Words
- DWG
- attribute
- Python Code
- Decorator
- 315. Count of Smaller Numbers After Self
- concurrency
- 715. Range Module
- Python
- Regular Expression
- Generator
- 컴퓨터의 구조
- 43. Multiply Strings
Archives
- Today
- Total
목록HashMap (1)
Scribbling
Design HashMap -- Python Implementation
To design a hashmap, we need 1) hashing function -- will use hash() method 2) an array for the hash table 3) Linkedlist for hash collision class Node: def __init__(self, key, val, nxt=None): self.key = key self.val = val self.nxt = nxt class LinkedList: def __init__(self): self.head = Node(0, 0) def append(self, key, val) -> None: prv, cur = self.head, self.head.nxt while cur is not None: if cur..
Computer Science/Algorithms & Data Structures
2023. 10. 5. 00:48