{"id":"max-depth-nary-leaf-guard","text":"The `if not root.children: return 1` check prevents `ValueError` from calling `max()` on an empty generator; removing it breaks leaf nodes.","truth_value":"IN","source":"entries/2026/06/06/maximum-depth-of-n-ary-tree-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"max-depth-nary-leaf-guard","truth_value":"IN","reason":"premise"}]}}