Solution 1: Brute-Force Use two loops to search the right pair. Time Complexity : O(n^2) Space Complexity: O(1) Solution 2: Sort and Search Sort the copied nums[O(NlogN)], and use two pointers start/end to search the pair[O(N)]. And search the indices in the original array. Time Complexity : O(NlogN
(nums []int, target int)
source not stored for this graph (policy: none)