Leetcode The finger of the sword Offer 11. The minimum numeric reference code of the rotation array is as follows :
class Solution:
def minArray(self, numbers: List[int]) -> int:
li=numbers
min=None
for i in range(len(numbers)):
li=li[1:]+[li[0]]
if min==None or li[0]<min:
min=li[0]
return min
Topic link :
https://leetcode.cn/problems/xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof/