Skip to content

amirrezaes/Simple-Hash-Table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Simple-Hash-Table

Simple Hash Table Class with python

A simple hash table class which uses mod 7 as hash operation (can be changed with m arg of HashTable class) using Linear probing for resolving collisions

t1 = HashTable()
for i in range(1000):
	t1[i] = hex(i) + "^" + str(id(i))  # something random :p

print(t1)
print(t1[2], t1[99])
print(15 in t1)
for i in t1:
	print(i)
del t1[0]
t1.clear()

About

Simple Hash Table Class with python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages