Complexity Analysis MCQ
Complexity Analysis MCQ
Q-2 In which of the following time complexities you can find the minimum
element in a stack after each pop() operation (Don’t Consider Space
Complexity)
(Here n is the size of stack)
A) O(n)
B) O(√n)
C) O(1) (correct)
D) O(logn)