Suppose a sorted array is rotated at some pivot unknown to you beforehand.
如果首个元素小于最后一个元素,表明数组是排序的。
youdao
应用推荐
模块上移
模块下移
不移动