We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dcc744 commit c34a96dCopy full SHA for c34a96d
Hash Table Implementation - 2 Sum Algorithm/2SUM.py
@@ -17,15 +17,14 @@ def main():
17
file = open("2SUM.txt", "r")
18
19
listOfElements = []
20
+ print("READING ELEMENTS FROM THE FILE..PLEASE WAIT ")
21
for i in range(1000000):
22
element = int( file.readline() )
23
listOfElements.append( [element, hashFunction(element)] )
- print("READING ELEMENT NUMBER " + str(i + 1))
24
25
# Separate chaining the hash table using a quick and dirty hash function
26
+ print("INSERTING ELEMENTS INTO THE HASH TABLE..PLEASE WAIT ")
27
- print("INSERTING ELEMENT NUMBER " + str(i + 1))
28
-
29
temp = []
30
temp = ( hashTable[listOfElements[i][1]] ) [ : ]
31
0 commit comments