Longest Univalue Path
CodingSoftware Engineer
Company question banks are included with the Insider plan.
Given the root of a binary tree, return the length of the longest path where each node in the path has the same value.
This path may or may not pass through the root.
The length of the path between...