Skip to content

SEA-CS-Salinas/hashtable-integer-lab-ArianaAdame

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open in Visual Studio Code

HashTable Integer Lab

Lab Description :

Write a hash table program Using an array of Java LinkedLists.

You will create the number class and use int values to construct Number objects. Organize the Number objects in the proper bucket using the hashCode of each Number.

The hash formula for Number consists of taking the value and moding(%) it by 10(which in most cases will be the size of the table). There are no duplicates in this hash table.

Sample Data :

30
34
56
78
09
12
23
43
45
78
98
76
65
54
43
21
1
2
3
4
5
6
7
8
9
11
10
1
2
3
4

Sample Output :

HASHTABLE
bucket 0 10
bucket 1 21 1 11
bucket 2 12 2
bucket 3 23 43 3
bucket 4 34 54 4
bucket 5 45 65 5
bucket 6 56 76 6
bucket 7 7
bucket 8 78 98 8
bucket 9 9

Important resources

About

sea-cs-salinas-24-25-cs3-hashtable-integer-lab-HashTable_Ints_Lab created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%