MCPcopy Create free account
hub / github.com/HuberTRoy/leetCode / findMin

Method findMin

Array/FindMinimumInRotatedSortedArray.py:47–58  ·  view source on GitHub ↗

:type nums: List[int] :rtype: int

(self, nums)

Source from the content-addressed store, hash-verified

45 return lo
46
47 def findMin(self, nums):
48 """
49 :type nums: List[int]
50 :rtype: int
51 """
52
53 rotate = self.find_rotate(nums)
54
55 if rotate == len(nums):
56 return nums[0]
57
58 return nums[rotate]

Callers

nothing calls this directly

Calls 1

find_rotateMethod · 0.95

Tested by

no test coverage detected