Examveda

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: Option D


This Question Belongs to Data Structure >> Miscellaneous On Data Structures

Join The Discussion

Related Questions on Miscellaneous on Data Structures