What is the time complexity of pop() operation when the stack is implemented using an array?

Q & ACategory: Data StructureWhat is the time complexity of pop() operation when the stack is implemented using an array?
Admin Staff asked 4 years ago

What is the time complexity of pop() operation when the stack is implemented using an array?
a) O(1)
b) O(n)
c) O(logn)
d) O(nlogn)

1 Answers
Admin Staff answered 4 years ago

a) O(1)