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
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board