"Your code passed the test cases," Sarah continued, "but we’re looking for optimization. The brute force is $O(n^2)$. Can you improve it?"
Find two indices in an array that sum up to a specific target. Efficiency Tip: Using a nested loop is testdome java questions and answers