Minor bug in creating collision table (double hashing)
HardMax71 opened this issue · comments
Max Azatian commented
Describe the bug
The number of rows in the collision table is always in 1 more than the number of values i need to add to that table.
To Reproduce
Steps to reproduce the behavior (If generation issue, please provide the seed stated on the first page):
0. Any seed
- Create .pdf with "double hashing" exercise
- Open exercises.pdf
- Scroll down to "double hashing"
- Look at the rows in the table
Expected behavior
Number of rows = number of values to add.
Screenshots
Pic from exercises.pdf (additional / not requested row is marked with blue arrow) :
Solution of the exercise :
Desktop (please complete the following information):
- IDE IntelliJ