a) pop
b) push
c) isEmpty
d) pop, push and isEmpty takes constant time
Which of the following takes O(n) time in worst case in array implementation of stack?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following takes O(n) time in worst case in array implementation of stack?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!