Skip to content

Commit bb9b1c3

Browse files
author
sangbeenmoon
committed
return nums[left] simply.
1 parent c9eb708 commit bb9b1c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

find-minimum-in-rotated-sorted-array/sangbeenmoon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ def findMin(self, nums: List[int]) -> int:
1919
else:
2020
right = mid
2121

22-
return min(nums[left], nums[right], nums[mid])
22+
return nums[left]

0 commit comments

Comments
 (0)