Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Even if the HT hasn't reached the full size yet all elements will nonetheless collide: If the size currently is at 16 then 64 will still have a hash of 0, as will 128, etc. For 16 simply other values would additionally collide like 16, 32, 48, etc. These would stop being collisions as soon as the HT is resized, so we don't insert them.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: