Longest Univalue Path

hard
https://leetcode.com/problems/longest-univalue-path/

Input Format

Check Link

Output Format

Check Link

Constraints

Check Link

Example

Input
Check Link
Output
Check Link
Previous
Even Odd Tree
Next
Populating Next Right Pointers In Each Node

Related Questions