VISUALGO//SEARCH
linear search · array trace console · O(n)
Goal:Find the target value 7 by checking each element from left to right.
22
0
85
1
32
2
62
3
40
4
82
5
12
6
16
7
33
8
72
9
73
10
96
11
▲
L
▲
R
ELEMENTS
TARGET
READOUT
step0 / 25
comparisons0
result—
statusIDLE