Dequeue efficient using stack - wrong answer

@abhishekchoudhary please read the input format carefully. You are doing it wrong.

image

That’s what I am doing? Is it wrong?

@abhishekchoudhary yes you just have to take input n, and push 0 to n - 1 numbers in the deque, instead you are trying to take user input for that also. I know it is a little confusing but this is why we have sample input, output.

Oh alright!
I understand.
Thanks.

@abhishekchoudhary please mark your doubt as resolved if you are satisfied :slight_smile: