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 tree path where every pair of neighboring nodes has different characters.

Statement

You are given a rooted tree with ...