Tibor2007's blog

By Tibor2007, history, 3 years ago, In English

Hi,

I'm learning about segment trees at this moment. So I tried doing this exercise: https://codeforces.com/contest/356/problem/A. However, I didn't succeed. Unfortunately, the editorial doesn't mention the segment tree approach. Could someone explain how you would go about solving this with a segment tree.

Thanks

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it