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.
Help Needed in ADDMULL — Codechef
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.