Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on LeetCode Two Sum.
std::map::find - http://www.cplusplus.com/reference/map/map/find/
std::unordered_map::find - http://www.cplusplus.com/reference/unordered_map/unordered_m...
Your Golang soln is O(N) still, since maps in Go lang are hashmaps.
dottomato
There are no comments on this comment yet.
std::map::find - http://www.cplusplus.com/reference/map/map/find/
std::unordered_map::find - http://www.cplusplus.com/reference/unordered_map/unordered_m...
Your Golang soln is O(N) still, since maps in Go lang are hashmaps.
dottomato