DEV Community

Discussion on: Queue using stacks & stack using queues

Collapse
 
espurrr profile image
Buddhini Abayaratna

Hi Thanoshan!
Yes!! That's another take on the operation and as I checked, far more efficient when taking elapsed time into account.
I made an edit to the post, so that others can look into your opinion🤠
Thanks for sharing your thoughts!

Collapse
 
mvthanoshan profile image
Thanoshan MV

Thanks! Do share more articles related to Data Structures.