Examveda

How do you implement a stack with O(1) time complexity for both push and pop operations?

A. Using an array with dynamic resizing

B. Using a linked list

C. Using a fixed-size array

D. Using a doubly linked list

Answer: Option B


This Question Belongs to Data Structure >> Stacks In Data Structures

Join The Discussion

Related Questions on Stacks in Data Structures