Skip to content

Commit 5808e7c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e9f7dd9 commit 5808e7c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

data_structures/arrays/peak_mountain_array.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from typing import List
88

9+
910
def peak_mountain(arr: List[int]) -> int:
1011
start, end = 0, len(arr) - 1
1112

@@ -17,6 +18,7 @@ def peak_mountain(arr: List[int]) -> int:
1718
start = mid + 1
1819
return start
1920

21+
2022
if __name__ == "__main__":
2123
arr = [1, 2, 3, 5, 7, 8, 6, 3, 2]
2224
peak_index = peak_mountain(arr)

0 commit comments

Comments
 (0)