Isnt the push time in stack also o(1) , constant?
How is push efficiency improved?
@tusharnitharwal
The question isnt asking for using stack directly
It is asking you to use queue for stack implementation
Isnt the push time in stack also o(1) , constant?
@tusharnitharwal
The question isnt asking for using stack directly
It is asking you to use queue for stack implementation