string-immutability-eliminates-backtracking

Status: IN

`binary_tree_paths` passes the accumulated path as a string parameter, relying on Python string immutability to give each recursive branch an independent snapshot without explicit undo or copy.

Source: entries/2026/06/06/binary-tree-paths-solution.md

JSON