- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Count Good Nodes in Binary Tree | Leetcode 1448 Explained Simply (DFS + Preorder) | NeetCode 150
Count Good Nodes in Binary Tree Leetcode 1448 Solution | DFS Preorder Traversal | NeetCode 150
In this video, we solve Leetcode 1448: Count Good Nodes in Binary Tree with a simple and beginner-friendly explanation.
We’ll understand why preorder traversal is the right approach, visualize recursion through drawings, and break down the optimal DFS solution step by step in C++.
If you're preparing for coding interviews, solving NeetCode 150, or strengthening your binary tree recursion concepts, this video will help.
⏱️ Timestamps:
00:00 - Problem Understanding
01:58 - Why We Use Preorder Instead of Level Order
02:24 - Drawing Explanation
04:00 - Code Explanation
06:31 - Time & Space Complexity
07:20 - Common Interview Doubts
08:13 - Why Space Complexity is O(log N)?
09:42 - Preorder vs Postorder Clarification
This is an important binary tree interview problem frequently asked in coding interviews.
If this helped, like and subscribe for more LeetCode + DSA explanations.
#Leetcode1448 #BinaryTree #NeetCode150 #DSA #CodingInterview
Видео Count Good Nodes in Binary Tree | Leetcode 1448 Explained Simply (DFS + Preorder) | NeetCode 150 канала Ghost Codes
In this video, we solve Leetcode 1448: Count Good Nodes in Binary Tree with a simple and beginner-friendly explanation.
We’ll understand why preorder traversal is the right approach, visualize recursion through drawings, and break down the optimal DFS solution step by step in C++.
If you're preparing for coding interviews, solving NeetCode 150, or strengthening your binary tree recursion concepts, this video will help.
⏱️ Timestamps:
00:00 - Problem Understanding
01:58 - Why We Use Preorder Instead of Level Order
02:24 - Drawing Explanation
04:00 - Code Explanation
06:31 - Time & Space Complexity
07:20 - Common Interview Doubts
08:13 - Why Space Complexity is O(log N)?
09:42 - Preorder vs Postorder Clarification
This is an important binary tree interview problem frequently asked in coding interviews.
If this helped, like and subscribe for more LeetCode + DSA explanations.
#Leetcode1448 #BinaryTree #NeetCode150 #DSA #CodingInterview
Видео Count Good Nodes in Binary Tree | Leetcode 1448 Explained Simply (DFS + Preorder) | NeetCode 150 канала Ghost Codes
Комментарии отсутствуют
Информация о видео
2 июня 2026 г. 8:30:39
00:10:59
Другие видео канала




















