Count of good nodes | Leetcode
Автор: Techdose
Загружено: 2021-10-27
Просмотров: 10140
This video explains how to count good nodes in a given binary tree which is a very important recursion based tree problem for interview. It is from leetcode 1448. In this problem, a good node is a node which do not have any other node from root to current node path which is greater than the current node. All such nodes are good nodes and our goal in this problem is to return the count of good nodes.
I have first explained the idea of the problem using examples followed by the bruteforce approach to solve it. Later, I have also shown the optimization technique with intuition and code walkthrough at the end of the video.
CODE LINK is present below as usual. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)
======================================PLEASE DONATE=============================
🧡 SUPPORT OUR WORK: / techdose
💚 UPI-ID: surya.kahar@ybl
💞JOIN Membership: / @techdose4u
==============================================================================
INSTAGRAM : / surya.pratap.k
LinkedIn: / surya-pratap-kahar-47bb01168
WEBSITE: https://techdose.co.in/
TELEGRAM Channel LINK: https://t.me/codewithTECHDOSE
TELEGRAM Group LINK: https://t.me/joinchat/SRVOIxWR4sRIVv5...
=======================================================================
USEFUL LINKS:
🟠Must do TIPS to ACE Virtual Interview: • 🔴Must do Tips to ACE your virtual interview
🟢Best strategy to excel your coding interview: • 🔴Best strategy to excel your coding interv...
🟡Get your dream job in 1 month: • 🔴Get your dream job in 1 month | 30 days P...
🔵How to crack dream job in just 2 months: • How to crack dream job in just 2 months
🟣7 Days DSA plan: https://techdose.co.in/7-days-dsa-che...
RELATED LINKS:
CODE LINK: https://gist.github.com/SuryaPratapK/...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: