Dequeu efficient queue using stack

Why this code gives error .I can’t find the error in my code.
Tell me the error in my code.

Hello @Alfred you have to call the back function using the object of the class :
https://ide.codingblocks.com/s/416045
if you have any doubt you can ask here:
Happy Learning!!

1 Like

:joy::joy:Thanks bro i lost my one hour in this silly mistake.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.