Minimum Height Trees | LeetCode 310 | C++, Java, Python

  Рет қаралды 17,033

Knowledge Center

Knowledge Center

Күн бұрын

Пікірлер: 22
@artemilyasov6446
@artemilyasov6446 4 жыл бұрын
Great explanation. One note is that your mouse cursor is not visible so when you pointing to something like a node in a tree it is hard to guess what node you are talking about.
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Thanks for letting me know.
@testshar2117
@testshar2117 3 жыл бұрын
@@KnowledgeCenter Seems you just listened and ignored. I found the same thing in your recent largest area rectangle problem too
@vartikasinghania9723
@vartikasinghania9723 3 жыл бұрын
great explanation.... I wouldn't have done this without this video..... thank you :)
@KnowledgeCenter
@KnowledgeCenter 3 жыл бұрын
Glad it helped!
@ragingpahadi
@ragingpahadi 2 жыл бұрын
Great explanation !
@KnowledgeCenter
@KnowledgeCenter 2 жыл бұрын
Glad you liked it!
@palakchawla6396
@palakchawla6396 3 жыл бұрын
Good explanation 👍👍
@KnowledgeCenter
@KnowledgeCenter 3 жыл бұрын
Thanks.
@rizwanghaffar24able
@rizwanghaffar24able 4 жыл бұрын
Great explanation
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Glad you think so!
@testshar2117
@testshar2117 3 жыл бұрын
10:45 ---- > this, this , this ???? Kahan ho bhai?
@abhilashpatel6852
@abhilashpatel6852 Жыл бұрын
@maheiramkhan
@maheiramkhan 4 жыл бұрын
for(auto &a: adj[node]){ adj[a].erase(node); if(adj[a].size()==1) Q.push(a); } I have trouble understanding this line, sir. Please help. for(auto &a: adj[node]) is iterating through the elements of the set at location 'node'. Is that right?
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
node is a node in Queue, which we popped. It was a leaf. adj[node] means neighbors(in fact neighbor) of node(leaf). Try without for loop. node should have just 1 neighbor.
@sahilchoudhary1473
@sahilchoudhary1473 4 жыл бұрын
great sir
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Thanks.
@algorithmimplementer415
@algorithmimplementer415 3 жыл бұрын
I am a bit distracted by the background noise of the video. Seems like baby is crying, or hounds. Pretty spooky.
@NikhilAsawadekar
@NikhilAsawadekar 7 ай бұрын
Your cursor is not visible in 90% cases. Too tough to figure out what's going on.
@mazharuddin3647
@mazharuddin3647 9 ай бұрын
confusing pointer , ruined the explanation
@saharamanson1970
@saharamanson1970 4 жыл бұрын
Where is Prim's??
Max Area of Island | LeetCode 695 | C++, Python
20:20
Knowledge Center
Рет қаралды 4,1 М.
Minimum Height Trees - Leetcode 310 - Python
23:30
NeetCodeIO
Рет қаралды 21 М.
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 15 МЛН
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 57 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 5 МЛН
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 94 МЛН
House Robber | LeetCode 198 | C++, Java, Python
18:45
Knowledge Center
Рет қаралды 11 М.
310. Minimum Height Trees | BFS | Topological Sort | Graphs
24:47
Edit Distance | Dynamic Programming | LeetCode 72 | C++, Java, Python
27:22
Most Common Concepts for Coding Interviews
6:08
NeetCode
Рет қаралды 335 М.
Best Books for Learning Data Structures and Algorithms
14:01
Engineering with Utsav
Рет қаралды 374 М.
310. Minimum Height Trees - Day 23/30 Leetcode April Challenge
23:41
Programming Live with Larry
Рет қаралды 850
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 403 М.
Recursion in Programming - Full Course
1:51:36
freeCodeCamp.org
Рет қаралды 966 М.
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 15 МЛН