tbquan08hanoi's blog

By tbquan08hanoi, history, 2 months ago, In English

Hi Codeforces community!

I was doing a problem like this: Given a string s, reverse a substring of it in each query, and print the final string after all queries. Constraints are 1 ≤ |S|, Q ≤ 10^5. I have seen many solutions using tree algorithms, is it possible to solve this problem without using tree algorithms?

Thanks!

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it