首页
技术博客
登录
6mi
u
盘
搜
搜 索
技术博客
2020-09-04
2020-09-04
tech
2025-03-14
9
标题peek-finding
暴力法:
class
solution
:
def
findPeekElem
(
self
,
List
)
:
self
.
List
=
List List
=
float
[
'-inf'
]
+
List
+
float
[
'-inf'
]
for
i
in
range
(
1
len
(
List
)
-
1
:
if
List
[
i
-
1
]
<
List
[
i
]
>
List
[
i
+
1
]
:
return
i
转载请注明原文地址:https://tech.qufami.com/read-21002.html
最新回复
(
0
)