My code is showing wrong answer for some of the case .can you please help me to identify the error where i am getting wrong.
Input case 1:
10
1 76
1 33
2
1 23
1 97
1 21
3
3
1 74
3
output should be 33 33 33 but i am getting wrong
Implementation of Queue using 2 stacks
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.