I HAD TRIED THIS QUESTION MANY TIMES STILL I GOT TIME LIMIT EXCEEDED ON TEST 18 EVERY TIME . I EVEN USED FEN WICK TREE WHICH IS REQUIRED TO OPTIMISED IN THIS QUESTION . TO THE BEST OF MY KNOWLEDGE I AM DOING GOOD STILL NOT ABLE TO DEBUG IT . PLZ SOMEONE HELP .
THE PROBLEM NAME IS — STRING REVERSAL (1430E)
SUBMISSION LINK- https://codeforces.net/contest/1430/submission/95628601
QUESTION LINK -https://codeforces.net/contest/1430/problem/E
THNX IN ADVANCE :))
UPDATED:DONE NOW ..SO NOW U CAN IGNORE IT ALSO
Don't do "arr[temp].remove(0)"(it takes linear time) use array of stack/queue instead.
You should check out SecondThread's youtube channel. link:https://www.youtube.com/channel/UCXbCohpE9IoVQUD2Ifg1d1g