15. 3Sum

transform to two sum (in sorted array)

time: O(n^2)

space: O(k), k is the number of solutions

Last updated

Was this helpful?