DSA Advanced Problems

Minimum Score After Removals on a Tree

Choose two tree edges to remove and minimize the difference between the largest and smallest component XOR.