List All Root-to-Leaf Binary Tree Paths

Asked at Capital One · Coding & Leetcode-style Questions · Difficulty: Easy · Last asked Feb 4, 2026

Given a binary tree, return every path from its root to a leaf. Preserve left-to-right traversal order, and represent each path as a list of node values.

Loading the problem…