Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ Linear_Search
Function
Linear_Search
Sorting Algorithms/Linear_Insertion_Sort.py:1–6 ·
view source on GitHub ↗
(Test_arr, val)
Source
from the content-addressed store, hash-verified
1
def
Linear_Search(Test_arr, val):
2
index = 0
3
for
i in range(len(Test_arr)):
4
if
val > Test_arr[i]:
5
index = i + 1
6
return
index
7
8
9
def
Insertion_Sort(Test_arr):
Callers
1
Insertion_Sort
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected