Back to Question
Binary Tree Paths (DFS)
Question Explain
Given the root of a binary tree, return all root-to-leaf paths as strings. Use Depth-First Search (DFS) with backtracking.
Start Trying This Question Simulation
Click "Start Speaking" and answer the question naturally.