{"id":"diameter-returns-edges-not-nodes","text":"`diameter_of_binary_tree` returns the number of edges on the longest path, not the number of nodes; a single-node tree returns 0, not 1.","truth_value":"IN","source":"entries/2026/06/06/diameter-of-binary-tree-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"diameter-returns-edges-not-nodes","truth_value":"IN","reason":"premise"}]}}