This problem teaches passing state down through recursion (the running maximum), a fundamental DFS pattern for path-based tree problems.
Enable JavaScript for the full StreamPrep guide.