Also reported as Count Paths That Can Form a Palindrome in a Tree · LeetCode 2791 Variant
Uber online assessment question, reconstructed from 6 candidate reports (November 2025 to August 2026). The write-up includes a Python solution that passes 7 test cases.