Search⌘ K
AI Features

Binary Tree Paths

Binary Tree Paths asks you to return every root-to-leaf path in a binary tree as a string of node values, including negative values, joined by arrows, with leaves defined as nodes without children.

Statement

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