剑指offer习题6

# -*- coding:utf-8 -*-
class Solution:
    def minNumberInRotateArray(self, rotateArray):
        # write code here
        if len(rotateArray) == 0:
            return 0
        min_b = rotateArray[0]
        for i in range(len(rotateArray)):
            if rotateArray[i] < min_b:
                min_b = rotateArray[i]
        return min_b
这题目鬼使一样,这么多要求就只喊打印最小值

猜你喜欢

转载自blog.csdn.net/u012693077/article/details/80788002