Checkpoint8 min

Two Pointers Checkpoint

When two pointers beats hashing, the greedy movement argument, and duplicate handling.

Question 1 of 7

A problem gives an UNSORTED array and asks for the indices of two numbers summing to a target. Which approach is right, and why?