3Sum ClosestMedium

array two pointers sorting

Pick three numbers whose sum is closest to target, and return that sum. Two approaches, same problem — switch between them and watch how time trades off.

Press play to watch the algorithm run.
Metrics
Legend
How it works
0 / 0