Skip to content

Commit ef355bc

Browse files
Chris WuChris Wu
Chris Wu
authored and
Chris Wu
committed
update answer
1 parent 341796b commit ef355bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

problems/find-peak-element.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
Else, it means the `p` and `p+1` is at the right side of the mountain,
66
We move the `r` to `p`, since the peak must be at `p` or the left of the `p`.
77
The `l` and `r` will move closer and closer to the peak until they meet together.
8-
The time complexity is O(LogN)
8+
The time complexity is `O(LogN)`
99
"""
10+
#O(LogN) Solution
1011
class Solution(object):
1112
def findPeakElement(self, nums):
1213
l = 0

0 commit comments

Comments
 (0)