We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27395b6 commit ef43bf9Copy full SHA for ef43bf9
Arrays-searching/src/linear_search_recursion.py
@@ -1,4 +1,6 @@
1
-# Recursive function to search x in arr[l..r]
+# Recursive function to search x in arr[l..r]
2
+# Another python program to search an element linearly in an array using Recursion (Read again 💯 )
3
+#Why recursion? Because it makes the task easier and reduces time complexity.
4
def rec_search( arr, l, r, x):
5
if r < l:
6
return -1
0 commit comments