257 Binary Tree Paths - Easy
Problem
Given a binary tree, return all root-to-leaf paths.
For example, given the following binary tree:
All root-to-leaf paths are:
["1->2->5", "1->3"]
Solutions:
Last updated
Given a binary tree, return all root-to-leaf paths.
For example, given the following binary tree:
All root-to-leaf paths are:
["1->2->5", "1->3"]
Last updated