Count Paths That Can Form a Palindrome in a Tree

Problem overview from a real Uber interview:

Given a tree parent array and edge character string, calculate how many unordered node pairs have at most one odd letter frequency in this Uber problem.

Check more interview questions and experiences about Uber

Please log in to view interview details