LeetCode Two Sum Posted by alkesh26 on Sunday February 28, 2021 @01:12PM from the alkeshghorpade.me dept. https://alkeshghorpade.me/post/leetcode-two-sum ( 1 comment | on HN )
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