Problem statement: http://codeforces.net/contest/1155/problem/B My code: http://codeforces.net/contest/1155/submission/53187901 I am getting the wrong answer for test case 90. But the input is very big. Unable to test it. Could someone provide a small test case for which my code gets the Wrong answer? I tried for a couple of hours but failed. Thanks.
Auto comment: topic has been updated by Tariqul (previous revision, new revision, compare).
make deque type as int.
Ah shit! I missed that. Initially, it was given to push character but later changed the logic. But forgot to change the type name.
BTW, Thank you very much, for your review.