Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the array nums = [0,1,2,4,5,6,7] might become: [4,5,6,7,0,1,2] if it was rotated 4 times. [0,1,2,4 ...
# You are given an integer array nums of length n. # Assume arrk to be an array obtained by rotating nums by k positions clock-wise. # We define the rotation function F on nums as follow: # F(k) = 0 * ...