Binary Tree Paths (#257)
Given the root
of a binary tree, return all root-to-leaf paths in any order.
A leaf is a node with no children.
Company Tags: Amazon, Google
Core Concept: Tree, DFS, Backtracking
Given the root
of a binary tree, return all root-to-leaf paths in any order.
A leaf is a node with no children.
Company Tags: Amazon, Google
Core Concept: Tree, DFS, Backtracking