2479. Maximum XOR of Two Non-Overlapping Subtrees
TreeDepth-First SearchGraph TheoryTrie
Hints
Hint 1
Try to build the answer bit by bit from the most significant bit to the least significant.
Hint 2
Use the Trie Data Structure to decide for each bit if it exists in the final answer.
Preparing judge…