DSAverse
Searching Algorithms
Loading Searching Algorithms...
Search Visualization
3
9
14
21
28
35
47
56
63
72
sorted arrayindex 0
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Searching Algorithms
Loading Searching Algorithms...
Search Visualization
Check every element one by one until the target is found — or the array ends. Simple, universal, finds all occurrences in a single pass.
Ready — click Play or step through manually.
Question 1 of 3
What is the time complexity of linear search in the worst case (target not present)?