1530. Number of Good Leaf Nodes Pairs | LCA | BFS | DFS | 4 Approaches

  Рет қаралды 6,110

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 33
@ARYANMITTAL
@ARYANMITTAL 6 ай бұрын
If you think you are not good, watch this - kzbin.info/www/bejne/q6fHmHmYf5uWd7M
@italk-gj5kk
@italk-gj5kk 6 ай бұрын
Video is good but again not gonna like and share your video otherwise competition will increase as the video will reach others as well
@VinayKumar-xs6el
@VinayKumar-xs6el 6 ай бұрын
usually i do leetcode in java, but with your neat and clean explaination want to try C++ as well can u suggest me a video for C++ like collection in java?
@ARYANMITTAL
@ARYANMITTAL 6 ай бұрын
❤️❤️🫡
@selfsigma9764
@selfsigma9764 6 ай бұрын
@@italk-gj5kk it just got increased buddy.
@codewith_me07
@codewith_me07 6 ай бұрын
I have done dsa in java but for your approach and explanation I will watch your video and implement code in java with your approach 🙂
@mohit7717
@mohit7717 6 ай бұрын
Great Explanation ... Thanks a lot ... ike unordered map approach ... that insane
@rajrajesh1669
@rajrajesh1669 6 ай бұрын
Luv u bro❣️ u always have my back.😢 I was able to think of approach 3 by myself but I missed That optimization that you told "There is no point in returning exceeded height" and because of that I thought that approach will give TLE. I'll pause the video and try to implement the solution then come back to watch the 4th approach.
@ARYANMITTAL
@ARYANMITTAL 6 ай бұрын
🫡🫡❤️
@AnujKshatriya09
@AnujKshatriya09 6 ай бұрын
Nice explaination 👍👍
@mdsajidanwar6416
@mdsajidanwar6416 6 ай бұрын
How can we solve Approach 1 when there is no unique nodes? Can someone explain
@SlapB0X
@SlapB0X 6 ай бұрын
Nodes will always be unique, the node->val can repeat. Hence, you can use an ordered map in C++ , to store the TreeNodes* as key and whatever value you want
@curlyoreki
@curlyoreki 6 ай бұрын
can you also link the code
@kkkkkkkkkk811
@kkkkkkkkkk811 6 ай бұрын
@ Aryan Mittal Bhaiya I am hopeless right now...not able to solve this despite solving over 350 questions on lc.Same happens in contest too..Able to solve only 2 always and get stuck on 3rd one....3rd year is about to start..Only 1 year left in placements...... please suggest some tips😓😭
@mohit7717
@mohit7717 6 ай бұрын
Don't hopeloess bro your are doing good but keep doing consistently. Keep solving atleast one problem daily.
@yagniktalaviya2146
@yagniktalaviya2146 6 ай бұрын
Buddy, make an excel for c and d for last 200 contests and try the problems, not able to solve, look up the topics, still not, solution. You will eventually start to get it!!
@yagniktalaviya2146
@yagniktalaviya2146 6 ай бұрын
docs.google.com/spreadsheets/d/18VyF4_NDbzzFOuk9s2U9n8bN0o8AY5o9xwKsixO5XoY/edit?usp=sharing
@arunm619
@arunm619 6 ай бұрын
I have 5 years of experience. I have solved 600+ problems on LC. I was not able to think of this approach. So you have long way to go my friend. Dont sweat it out.
@kkkkkkkkkk811
@kkkkkkkkkk811 6 ай бұрын
@@yagniktalaviya2146 thanks .Definitely going to follow this
@Ayush37262
@Ayush37262 6 ай бұрын
Bro Time Complexity wala part smjh nhi aaya... Kisi aur ko aaya hai toh pls thoda explain kardo 🙏
@PRM20
@PRM20 6 ай бұрын
🐐
@cminor9037
@cminor9037 6 ай бұрын
gg
@selfsigma9764
@selfsigma9764 6 ай бұрын
I have subscribed your channel but the notification was personalized. I was checking notifications for todays problem but yt algo was not pushing. So I go to my subscriptions and changed notification to all of your channel. Sometimes I do daily problem by myself and when I fails, I remains confident that today Im gonna learn a new aproach by your vides. I bet there is no one who will not understand the problem by your teaching.. Thanks for making my life confident and easier 🙂.
@adarshjain3058
@adarshjain3058 6 ай бұрын
attendance++;
@prathamshirbhate31
@prathamshirbhate31 6 ай бұрын
are @aryanmittla bhaiya yaad hu ky me
@Krishna-ti8ys
@Krishna-ti8ys 6 ай бұрын
Ha bhai, but for wrong reason (SPAMMER)🤣
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
2364. Count Number of Bad Pairs | Hash Map
10:54
Aryan Mittal
Рет қаралды 902
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 920 М.
Reinforcement Learning - My Algorithm vs State of the Art
19:32
Pezzza's Work
Рет қаралды 156 М.
How to Remember Everything You Read
26:12
Justin Sung
Рет қаралды 4,2 МЛН
Where Does Bad Code Come From?
42:21
Molly Rocket
Рет қаралды 214 М.
Number of Good Leaf Nodes Pairs - Leetcode 1530 - Python
20:22
NeetCodeIO
Рет қаралды 12 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН