Citadel Interview Question
CitadelQuantitative Research Analyst Interview
You are given an array of integers, A1, A2, ..., An, including negatives and positives, and another integer S. Now we need to find three different integers in the array, whose sum is closest to the given integer S. If there exists more than one solution, any of them is ok. Is there an algorithm to find the three integers in O(n^2) time?
Unlock the Full Solution
Enter your email to get instant access to the complete solution, explanation, and similar practice problems.