Problem 543 · Easy
DFS returns depth; global max tracks the widest path as left depth + right depth at each node.
Open the interactive visualisation