Vidyalelo
Data Structure · Q98

Introduction to Data Structures

Programming · Data Structure · question 98

Q98

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

A.
O(1)
Answer
B.
O(n)
C.
O(logn)
D.
O(nlogn)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board