Vidyalelo
Data Structure · Q658

Miscellaneous on Data Structures

Programming · Data Structure · question 658

Q658

Which of the following takes O(n) time in worst case in array implementation of stack?

A.
pop
B.
push
C.
isEmpty
D.
pop, push and isEmpty takes constant time
Answer

Answer: Option D

Solution

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