Searching Algorithms Flashcards
1
Q
What is the time complexity of a binary search?
A
O (log(n))
2
Q
What is the time complexity of a linear search?
A
O(n)
What is the time complexity of a binary search?
O (log(n))
What is the time complexity of a linear search?
O(n)