Skip to content

Instantly share code, notes, and snippets.

@Seniru
Created May 27, 2025 17:36
Show Gist options
  • Save Seniru/7a14269be503480fb5c6e1330346a2db to your computer and use it in GitHub Desktop.
Save Seniru/7a14269be503480fb5c6e1330346a2db to your computer and use it in GitHub Desktop.
def linear_search(arr, v):
for i in range(len(arr)):
if arr[i] == v: return i
return None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment