Longest Path With Different Adjacent Characters
Longest Path With Different Adjacent Characters asks you to find the maximum number of nodes on a tree path where every pair of neighboring nodes has different characters.
We'll cover the following...
We'll cover the following...
Statement
You are given a rooted tree with