Little Rabbit and the XOR Tree
CodeChefOpen on judge ↗
Problem description: Little rabbit is one of the genius of his kind. Being so genius he can easily perform XOR operation and trace a path in the tree. Once a team of researchers got interested in him and wanted to check his intelligence. They all went to meet the rabbit and gave him a tree with weighted edges and asked him many queries. As the rabbit is too fast, researchers need your help to c
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start