Skip to content

Commit 50af8cf

Browse files
committed
added time complxity
1 parent ef3fc20 commit 50af8cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Arrays/longest_peak.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
5. go to the downhill end
1717
6. update the ans
1818
"""
19+
# Time Complexity: O(n)
20+
# Space Complexity: O(1)
21+
22+
1923

2024
arr=[1, 2, 3, 3, 4, 0, 10, 6, 5, -1, -3, 2, 3]
2125

0 commit comments

Comments
 (0)