mirror of
https://github.com/jlengrand/Coding4Interviews.git
synced 2026-03-10 08:11:24 +00:00
20 lines
275 B
Python
20 lines
275 B
Python
"""
|
|
HashMap Table Implementation
|
|
@jlengrand
|
|
2013/11
|
|
"""
|
|
|
|
class HashMap():
|
|
def __init__(self):
|
|
self._size = 0
|
|
|
|
def size(self):
|
|
return self._size
|
|
|
|
def _hash(self, value):
|
|
if len(value) < 1:
|
|
raise Exception("Size of value must be greater than one")
|
|
return 1
|
|
|
|
|