tree2str-no-unnecessary-right-parens

Status: IN

`tree2str` never emits parentheses for an absent right child, regardless of whether the left child exists — the asymmetric conditional (`if root.left or root.right` vs. `if root.right`) encodes this rule.

Source: entries/2026/06/06/construct-string-from-binary-tree-solution.md

JSON