https://github.com/jochasinga/mini-hashmap
A small implementation of hashmap
https://github.com/jochasinga/mini-hashmap
Last synced: 9 months ago
JSON representation
A small implementation of hashmap
- Host: GitHub
- URL: https://github.com/jochasinga/mini-hashmap
- Owner: jochasinga
- Created: 2018-07-11T18:00:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-11T18:01:21.000Z (almost 8 years ago)
- Last Synced: 2025-03-28T08:33:10.517Z (about 1 year ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mini-hashmap
An implementation of hashmap based on Python array and deque.
## use
`HashMap.put([key, val])` save the entry to the hashmap. It iterates the underlying queue to find a duplicate and delete that beforehand.
`HashMap.get([key])` retrieve the latest value with the corresponding key.