lintcode 39. Recover Rotated Sorted Array (思想非常好!!!)
image.png用三段翻转法!!!如[4,5,1,2,3],首先[5,4],然后[3,2,1],最后[1,2,3,4,5]classSolution{public:/***@paramnums:Anintegerarray*@return:nothing*/voidrecoverRotatedSortedArray(vector&nums){//writeyourcodehereintindex