Q. Which of the following takes O(n) time in worst case in array implementation of stack? (Solved)
1. pop
2. push
3. isempty
4. pop, push and isempty takes constant time
- d. pop, push and isempty takes constant time
1. pop
2. push
3. isempty
4. pop, push and isempty takes constant time