Hacker News new | ask | show | jobs
by khc 3027 days ago
How is this a hashtable implementation?
2 comments

It's not, if you can tell the difference between implementing something and using/instantiating something.
int i = HashTable::hash(r) table[i].push_back(r);

they hash the data and use that as an index. So by def. That said it's pretty bare and missing _ALOT_