We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 341796b commit ef355bcCopy full SHA for ef355bc
problems/find-peak-element.py
@@ -5,8 +5,9 @@
5
Else, it means the `p` and `p+1` is at the right side of the mountain,
6
We move the `r` to `p`, since the peak must be at `p` or the left of the `p`.
7
The `l` and `r` will move closer and closer to the peak until they meet together.
8
-The time complexity is O(LogN)
+The time complexity is `O(LogN)`
9
"""
10
+#O(LogN) Solution
11
class Solution(object):
12
def findPeakElement(self, nums):
13
l = 0
0 commit comments