Time complexities Flashcards
1
Q
What is time complexity of hashmap lookup operation?
A
“Expected” worst case runtime: O(1)
Worst case: O(n)
2
Q
A
DSA functions > Time complexities > Flashcards
What is time complexity of hashmap lookup operation?
“Expected” worst case runtime: O(1)
Worst case: O(n)