sigmamale's blog

By sigmamale, history, 4 months ago, In English

Hi. I am reading Efficient and easy segment trees(bottom-up approach) and I solved a problem "Assignment to Segment" from edu(the problem is about interval assign). But I can't prove why it's sufficient to propagate only parents of l and r - 1. Can anybody help me to prove it? Problem link

My code

Full text and comments »

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