• + 3 comments

    Problem text has two more errors: 1. A typo: instead of "Erase the last k character [...]" it should say "Erase the last k characters [...]" (as in plural) 2. The maximum stated value of Q is 10^5, but that's incorrect, since I had to buy testcase 9 and saw that it has a million queries! So it should say 10^6.