Fundamentals
/
Best, Worst, and Average Case
⏸
00:00
↻
← Prev
Next →
▶
Question
Given a sorted array and a target, return the index of the target using linear search; the worst case is when the target is missing or last.
▶
Understand
▶
Approach
▶
My Code
▶
Reference Solution
Compare
8