FIND DUPLICATE SUBTREES | LEETCODE # 652 | PYTHON DFS SOLUTION

  Рет қаралды 4,911

Cracking FAANG

Cracking FAANG

Күн бұрын

Пікірлер: 26
@dnm9931
@dnm9931 10 ай бұрын
Excellent video again! Please do videos on all neetcode 150, your concise , clear explanations are appreciated and needed ! Thank you so much!
@crackfaang
@crackfaang 10 ай бұрын
Why would I make videos for someone else's list. I already put out a spreadsheet with problems for people to learn LC that relies more on chains of similar problems such that you can solve questions that are similar in nature: learning patterns and being able to apply previous knowledge to new questions
@dnm9931
@dnm9931 10 ай бұрын
@@crackfaang or complete the blind 75? Your efforts are appreciated btw , no hard feelings
@crackfaang
@crackfaang 10 ай бұрын
​@@dnm9931All good, I know you didn't mean anything malicious by it. I personally don't see the point of those lists because they give you a false sense of hope that solving X questions == ready to ace Google interview. That simply isn't the case and if anything they are only useful for just getting a basic breadth first knowledge base
@dnm9931
@dnm9931 10 ай бұрын
@@crackfaang then how would you recommend is the best way to prepare for a faang interview? Or is a majority of it luck?
@crackfaang
@crackfaang 10 ай бұрын
​@@dnm9931Video coming out on this soon. But yes lots of memorization + luck on the day that you get a question you've seen before
@mohsenvazirizade6334
@mohsenvazirizade6334 Жыл бұрын
Thank you for the solution. I think this approach is O(N**2) due to line 11. Also, there is no point in having path as an input argument to the function.
@subee128
@subee128 10 ай бұрын
Thanks
@zungulutrungu6407
@zungulutrungu6407 2 жыл бұрын
you're close to 1000 man, keep it up!!
@paradox2738
@paradox2738 2 жыл бұрын
I dont understand the need to pass path as a parameter, it works without it
@zungulutrungu6407
@zungulutrungu6407 2 жыл бұрын
the thumbnail game is getting even better!!
@crackfaang
@crackfaang 2 жыл бұрын
Improving every day
@ramymousa4189
@ramymousa4189 2 жыл бұрын
Thank you. keep posting!
@crackfaang
@crackfaang 2 жыл бұрын
Will do! Keep watching!
@hanjiang9888
@hanjiang9888 2 жыл бұрын
thank you!!! well explanation
@MeetManga
@MeetManga 2 жыл бұрын
Is the time complexity ON, Are you sure?
@MeetManga
@MeetManga 2 жыл бұрын
I do believe the time complexity of your solution is ON², cuz, there are N² subtree, every subtree need to be compare by the hashmap. correct me , if I'm wrong. thank you
@MeetManga
@MeetManga 2 жыл бұрын
And, the space complexity is also N²
@bigbussington4755
@bigbussington4755 2 жыл бұрын
@@MeetManga Ur wrong
@jyothi9082
@jyothi9082 Жыл бұрын
time is indeed O(N2)
@dnm9931
@dnm9931 10 ай бұрын
Chatgpt says he’s correct lol
@danearcher8338
@danearcher8338 2 жыл бұрын
why is the comma needed in the join? it doesn't pass a test case with out it
@progdevel
@progdevel Жыл бұрын
coz there may be several numbers going one by one
@akakartik
@akakartik 2 жыл бұрын
The audio in your videos is very low ,I think increasing it,it will be more helpful
@crackfaang
@crackfaang 2 жыл бұрын
Hmm you aren’t the first person to mention this. I speak directly into the mic so not sure what’s up. Maybe I can tweak my audio settings when rendering the video. Thanks for the heads up
@akakartik
@akakartik 2 жыл бұрын
@@crackfaang I think maybe a better microphone is needed, your content is really good and the only thing I think that is holding to blow this channel up is the sound issue, hope you will fix it soon 😄😄
MAXIMAL NETWORK RANK | LEETCODE # 1615 | PYTHON GRAPH SOLUTION
9:52
Cracking FAANG
Рет қаралды 3,7 М.
Find Duplicate Subtrees - Leetcode 652 - Python
14:33
NeetCodeIO
Рет қаралды 20 М.
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 87 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 133 МЛН
[Java] Leetcode 652. Find Duplicate Subtrees [Binary Tree #10]
16:41
Eric Programming
Рет қаралды 8 М.
CLOSEST BINARY SEARCH TREE VALUE II | LEETCODE # 272 | PYTHON SOLUTION
14:16
RACE CAR | LEETCODE # 818 | PYTHON BFS SOLUTION
15:40
Cracking FAANG
Рет қаралды 11 М.
Find Duplicate Subtrees | Leetcode 652 | Binary Trees
22:24
Ayushi Sharma
Рет қаралды 6 М.
ACCOUNTS MERGE | LEETCODE # 721 | PYTHON SOLUTION
23:04
Cracking FAANG
Рет қаралды 11 М.
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 197 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 834 М.
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 87 МЛН