DEV Community

Alexander Kazanski
Alexander Kazanski

Posted on

Stop looping twice. Here's how a single hash map pass solves Two Sum in O(n) — the trick every interviewer expects you to know.

Top comments (0)