πŸ’‘ Prateek Sir and Coding


what is wrong in the code?

@17manishms hey manish this question have very easy logic please don’t make it complex
follow this algorithm
Algo:

Check the Type of the query entered.
If it is 1 then,
……2.1 pop and print the book.
……2.2 If stack is empty print No Code otherwise print price.
Repeat the work till the q is vanished.

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.