Hello. I recently solved the problem C of Round #490, Div3 (Alphabetic Removals). I am getting a TLE on the solution and I can't seem to find the error. My solution takes O(4*10^5) time, which should work fine. Please help.↵
Below is my code.↵
[submission:39534219]↵
[problem:999C]↵
Below is my code.↵
[submission:39534219]↵
[problem:999C]↵