Every node of a rooted tree holds a letter. For each query node, count the upward paths whose letters can be rearranged into a palindrome.
Every node of a rooted tree holds a letter. For each query node, count the upward paths whose letters can be rearranged into a palindrome.
Opens with the full question.