Searching intro time O(n) space O(1)
Linear Search
Look at every element in turn and compare it with the key. Simple, works on any array — sorted or not.
Scan left to right, looking for 15.
1 / 5
Practice
Machine twin: /dsa-viz-v2/linear-search.json — the full deterministic run as structured data.