Informal Run-Time Analysis - AP Computer Science A

Card 1 of 30

0
Didn't Know
Knew It
0
1 of 3029 left
Question

What is the Big O for finding an element in an unsorted linked list?

Tap to reveal answer

Answer

$O(n)$. Must traverse list sequentially to find element.

← Didn't Know|Knew It →