```
class Solution(object):
def findMin(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
i = 1
while i < len(nums) and nums[i] > nums[i-1]: i += 1
return nums[i] if i < len(nums) else nums[0]
```