An open API service indexing awesome lists of open source software.

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

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.