We can use 2 pointers on start and at end. We iterate till i< j, & first we calculate sum = num[i]+num[j]. if sum == target return [i+1,j+1] (as 1-based indexing). As the array is sorted moving in ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果一些您可能无法访问的结果已被隐去。
显示无法访问的结果