TREEROOT - Editorial

the tags are very dis-heartning easy ,easy simple , basic maths . Bit masking to likh do bhai

You can do the prob without using bit masking. I guess that’s why they tagged it as easy and simple.

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

similar to find missing number in a sequence of consecutive numbers.