把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。输入一个递增排序的数组的一个旋转, 输出旋转数组的最小元素 。例如,数组 [3,4,5,1,2] 为 [1,2,3,4,5] 的一个旋转,该数组的最小值为1。
[3,4,5,1,2]
[1,2,3,4,5]
Gojay
Gojay's Records
Chongqing, China
Posts
95
Categories
26
Tags
81
AIGC / Diffusion Model
Coding / source-code
API / Python API
API / Image API
Update your browser to view this website correctly. Update my browser now
×