Linear search scans a collection element by element until it finds the target or reaches the end. It works on any list — sorted or not — but runs in O(n) time.
The idea
No assumptions about order: just check each item one at a time.
Example
python
():
i, value (arr):
value == target:
i
-
linear_search([, , , ], )
