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

Yeah, seems like you have the right idea, for arrays. So if you think about a hash table, (a very simple one) that is just a big array, paired with a function that turns keys into indices. So you would define your function. It would spit out an index. And you would calculate the location of that index based on the start point of the array, and the size of the values.


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

Search: