Solution · Place the two pointers (let start and end ) at the start and end of the array. · Swap arr[start] and arr[end] · Increment start and decrement end with 1 ...
確定! 回上一頁