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…
More Capital One interview questions
- Implement Top-P (Nucleus) Sampling
- Design a Customer-Service Chatbot for Capital One
- Behavioral Stories for Change, Conflict, and Growth
- Amusement Park Profitability Case
- MLE Deployment, Monitoring & Latency Optimisation
- Reliable Account Balance Service and Cross-Region Event Platform