DRGHTS-Editorial


please tell me what is wrong with the sol

Please upload solution of author and tester.

what is to be done after calculating I[] of all nodes??
Plz somebody help
This is my after reading this editorial
http://www.codechef.com/viewsolution/3931123
it is giving WA

//