SUM ROOT TO LEAF NUMBERS | LEETCODE 129 | PYTHON DFS SOLUTION

Опубликовано: 08 Февраль 2026
на канале: Cracking FAANG
2,318
65

Today we're solving a problem which provides a nice introduction into the world of DFS tree traversals and has you performing some relatively straightforward operations as you pass through the tree.

A good problem for learning the ropes for DFS as this algorithm type is used constantly throughout Leetcode.

00:00 Intro
00:18 Question Prompt
00:40 Basic Example
01:45 Solution Intuition
04:08 Coding
07:11 Time/Space Complexity