Status: IN
Tree solutions use closure-based DFS where the inner `dfs` function captures a `result` list from the enclosing scope, avoiding return-value plumbing while keeping the recursion signature clean.
Source: entries/2026/06/06/find-all-the-lonely-nodes-solution.md