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

Agreed on use of std::unordered_map, but I appreciated that the depth this went to was a simple comparison between the two obvious STL approaches. I think you could probably speed things up tremendously via micro-optimization, but it’s arguably more useful to know which of these two approaches to use when writing the code for the first time than how to optimize it to the teeth.


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

Search: