Search⌘ K
AI Features

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.

Statement

You are given a rooted tree with ...