Binary Tree Paths

Title: Binary Tree Paths Source: leetcode.com

Given a binary tree, return all root-to-leaf paths.

For example, given the following binary tree:

All root-to-leaf paths are:

Java solution

Rate this post

Leave a Reply