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

Method findMin

Array/FindMinimumInRotatedSortedArrayII.py:56–67  ·  view source on GitHub ↗

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

(self, nums)

Source from the content-addressed store, hash-verified

54 return lo
55
56 def findMin(self, nums):
57 """
58 :type nums: List[int]
59 :rtype: int
60 """
61
62 rotate = self.find_rotate(nums)
63
64 if rotate == len(nums):
65 return nums[0]
66
67 return nums[rotate]
68

Callers

nothing calls this directly

Calls 1

find_rotateMethod · 0.95

Tested by

no test coverage detected