Given an array and a target sum, first return the indices of two elements that add up to the target (Two Sum). Then extend it to three elements: return all unique triplets that sum to the target.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.