I have 2 kind of operations
Update the value of all vertex in a subtree of a vertex to 1.
Update the value of all vertex which are ancestors of a vertex to 0.
I m not able to think how to do the 2nd operation in log(n) using segment tree with lazy Propagation.
Please anyone let me know your approaches.
Thanks in advance.