index
:
clp
main
A small Python compiler with optimizer written in Java
dcariotti
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
progs
/
a307.py
blob: 98e7e7ece0e1cba82966e239e9257b6289967538 (
plain
)
1
2
3
4
5
def
find_fixed_point
(
arr
,
n
):
for
i
in
range
(
n
):
if
arr
[
i
]
is
i
:
return
i
return
-
1