Searching Algorithms Flashcards

1
Q

What is the time complexity of a binary search?

A

O (log(n))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the time complexity of a linear search?

A

O(n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly