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