Which of the following takes O(n) time in worst case in array implementation of stack?
Posted: Wed Jul 13, 2022 7:40 pm
a) pop
b) push
c) isEmpty
d) pop, push and isEmpty takes constant time
b) push
c) isEmpty
d) pop, push and isEmpty takes constant time