Using the reverse method. Example, Given the array [1,2,3,4,5,6,7] and k=3 , what we should be thinking is, everything needs to be shifted 3 ...
確定! 回上一頁