```
class Solution(object):
def findMin(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
prev = nums[0]
for i in range(1, len(nums)):
if nums[i] < prev:
return nums[i]
return prev
```