Problem Screenshotstrong text I am not sure why my answer is incorrect. Can anyone tell me whay I am doing wrong without giving my the answer? Thanks in advance. The problem states: Suppose we have the following HashMap using linear probing, where the keys are integers, and the values are not shown. The hash function is the identity function, and the compression function is modulo like usual.
[ 0 _ _ _ 4 5X 6 18 8X _ _ 11 24]
Suppose we decide to shrink the table to length 9. We perform this resize by considering the entries from left to right in the original table. What is the new table? Input your answer as the following form as an array with no commas, just single spaces. Null spots can be denoted by an underscore _. For example, if we were to write down the original table in the format we want, then it would be "[0 _ _ _ 4 5X 6 18 8X _ _ 11 24]".
My incorrect answer is: [0 18 11 _ 4 5X 6 24 8X]
When resizing, the DEL
markers are set to null.