Leetcode - Find Minimum in Rotated Sorted Array II (Python)

preview_player
Показать описание
July 2020 Leetcode Challenge
Leetcode - Find Minimum in Rotated Sorted Array II
Рекомендации по теме
Комментарии
Автор

Excellent explanation! I'm always excited to see your solutions everyday to the daily challenge tbh.

DoJoStan
Автор

Am I naive or can this problem be solved so easily using this approach? It passed all test cases

min = float("inf")

for n in nums:
if n <= min:
min = n
return min

CY-ijye
visit shbcf.ru