Hey , i was learning persistent segment trees , i got what the concept behind it and now i have to solve problems.I guess people out here might be having some built in templates , can you sahhare yours so that i can see how to efficiently code it as i read that too much pointers can cause TLE.↵
Thanks.↵
↵
**IF YOU ARE HAVING SOME TEMPLATE REGARDING THIS STRUCTURE WHICH YOU USE IN CONTESTS ( A SAMPLE PROBLEM USING IT IS HIGHLY APPRECIATED) THEN PLEASE SHARE AS I WANT TO LOOK INTO ALL THOSE TO LEARN THE HIGHLY EFFICIENT ONE AMONGST THEM**
↵
**IF YOU ARE HAVING SOME TEMPLATE REGARDING THIS STRUCTURE WHICH YOU USE IN CONTESTS ( A SAMPLE PROBLEM USING IT IS HIGHLY APPRECIATED) THEN PLEASE SHARE AS I WANT TO LOOK INTO ALL THOSE TO LEARN THE HIGHLY EFFICIENT ONE AMONGST THEM**