Binary Tree Return All Root-To-Leaf Paths

Given the root of a binary tree, return all root-to-leaf paths in any order.

A leaf is a node with no children.

image

Solution

Last updated