← All problemsSign in

Palindromic Tree

Chef has a Tree with each Node assign with the lower case character between a to z. Chef has borrowed some palindrome from rishabh_singh0. Now, rishabh_singh0 needs palindrome back and chef is happy so chef wants to give the longest palindrome he has. Unfortunately, the chef has messed the tree so he wants you to give the length of the largest palindromic path in the tree so that chef can retur

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start