Skip to main content
Loading page content
Algo
Flow
Visualizers
Mental Math
Dashboard
Log in
Sign up
Back to Visualizer
Question 1 of 5
Searching
• Character Search
What is the time complexity of searching for a single character in a string of length n using linear scan?
A
O(1)
B
O(n)
C
O(log n)
D
O(n^2)