Two Sum — Interactive Visualizer

Scan once with a hashmap of seen values and resolve the complement the moment it appears.