How to solve the question https://www.hackerrank.com/challenges/sherlock-and-cost on hackerrank?
How to solve the question https://www.hackerrank.com/challenges/sherlock-and-cost on hackerrank?
How to solve SPOJ-FREQUENT VALUES "http://www.spoj.com/problems/FREQUENT/" using segment tree?? I want to know what to store in the node of the tree?
Given a Tree. How to find no.of pairs (i,j) such that XOR of all the paths from I'th node to J'th node is equal to given k??