summaryrefslogtreecommitdiff
path: root/progs/a307.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a307.py')
-rw-r--r--progs/a307.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a307.py b/progs/a307.py
new file mode 100644
index 0000000..98e7e7e
--- /dev/null
+++ b/progs/a307.py
@@ -0,0 +1,5 @@
+def find_fixed_point(arr, n):
+ for i in range(n):
+ if arr[i] is i:
+ return i
+ return -1 \ No newline at end of file