Page 1 of 1

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

Posted: Wed Jul 13, 2022 7:40 pm
by answerhappygod
a) pop
b) push
c) isEmpty
d) pop, push and isEmpty takes constant time