We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b40844 commit d15812dCopy full SHA for d15812d
docs/Leetcode_Solutions/Python/153._find_minimum_in_rotated_sorted_array.md
@@ -32,6 +32,22 @@ Output: 0
32
## 解题方案
33
34
> 思路 1
35
+******- 时间复杂度: O(NlgN)******- 空间复杂度: O(1)******
36
+
37
+python大法好,一行sb AC, beats 100%,可能测试用例大多数都是基本有序的吧
38
39
+```python
40
+class Solution(object):
41
+ def findMin(self, nums):
42
+ """
43
+ :type nums: List[int]
44
+ :rtype: int
45
46
+ nums.sort()
47
+ return nums[0]
48
+```
49
50
+> 思路 2
51
******- 时间复杂度: O(N)******- 空间复杂度: O(1)******
52
53
@@ -58,7 +74,7 @@ class Solution(object):
58
74
```
59
75
60
76
61
-> 思路 2
77
+> 思路 3
62
78
******- 时间复杂度: O(lgN)******- 空间复杂度: O(1)******
63
79
64
80
0 commit comments