Count Good Nodes in Binary Tree | Leetcode 1488 | Live coding session 🔥🔥🔥

preview_player
Показать описание
Here is the solution to "Count Good Nodes in Binary Tree" leetcode question. Hope you have a great time going through it.

1) 0:00 Explaining the problem out loud
2) 1:10 Algorithm walkthrough
3) 2:30 Solution approach
4) 5:00 Coding and Time Complexity

For discussion/feedback

PS : Please increase the speed to 1.25X
Рекомендации по теме
Комментарии
Автор

This seems to an easy one wrongly categorized as medium

sreejith
Автор

Very efficient code, thankyou for sharing

sajan
Автор

can you please share a way to do this without taking the global variable

nandinibagga
Автор

Why we should not update prev when comparisons are done?

ankishkhandelwal
visit shbcf.ru