Skip to content

Count Paths That Can Form a Palindrome in a Tree

A Hard coding interview problem in the Trees pattern.

Likely pattern

Trees

Recursive DFS and level-order BFS over hierarchical data.

Recognition cue: A binary tree or BST: depth, paths, ancestors, or level-by-level processing.

Do not confuse it with

Topics

  • Dynamic Programming
  • Bit Manipulation
  • Tree
  • Depth-First Search
  • Bitmask
  1. 1Hard
  2. 2Hard
  3. 3Hard
  4. 4Hard
  5. 5Hard
  6. 6Hard
  7. 7Hard
  8. 8Hard