Prabal08's blog

By Prabal08, history, 6 months ago, In English

Problem Link https://www.codechef.com/problems/ADDMUL

I wanted to understand how to handle addition and multiplication queries simultaneously. Though I read the editorial, I could not understand how to propagate lazy updates to the child nodes.

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

»
6 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Prabal08 (previous revision, new revision, compare).

»
6 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Do you mind try reading my solution?

https://www.codechef.com/viewsolution/41782975

Hopefully the documentation that I put helps. Do let me know if it doesn't.