```
class Solution(object):
def findMin(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if len(nums) == 1:
return nums[0]
if sorted(nums) == nums:
return nums[0]
return nums[len(nums)-sorted(nums).index(nums[0])]
```