All Nodes Distance K In A Binary Tree - Performing Bidirectional Search On A Tree Using A Hashtable

  Рет қаралды 83,197

Back To Back SWE

Back To Back SWE

Күн бұрын

Пікірлер: 466
@BackToBackSWE
@BackToBackSWE 6 жыл бұрын
Table of Contents: The Problem Introduction 0:00 - 1:10 Going Through The Levels 1:10 - 3:00 A Traumatic Flashback 3:00 - 3:29 We Realize We Already Know How to Do This 3:29 - 3:56 But...We Have A Problem 3:56 - 5:52 A Hashtable Might Be Able To Help Us 5:52 - 7:14 The Breadth First Search Walkthrough 7:14 - 13:24 Time Complexity 13:24 - 13:29 The Show Gets Hijacked By Ishan 13:29 - 13:51 A Special Property of Trees 13:51 - 14:03 An Example of The Property 14:03 - 14:41 Space Complexity 14:41 - 14:55 The Show Is Reclaimed 14:55 - 15:08 Wrap Up: Subscribe & Validate My Existence 15:08 - 15:35 Sort of Mistakes: 5:57 -> O(1) does not mean immediate access. It is an asymptotic bound on how runtime scales with large input sizes. 10:19 -> Many times I referenced the "seen" HashSet as a hashtable. I just mean it is a set of items with unique signatures. White Noise / Hissing On Audio: I know about it. I am still working to get the right sound settings right on my mic to make this disappear. The code for this problem is in the description. Fully commented for teaching purposes.
@anubhavkalia5130
@anubhavkalia5130 4 жыл бұрын
please make more videos thanks a lot
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ok
@hieungocvo1090
@hieungocvo1090 4 жыл бұрын
I cannot see the code for the problem
@Royceroni
@Royceroni 3 жыл бұрын
the code isn't in the description?
@lifealalexie
@lifealalexie 3 жыл бұрын
I love how you explained things in the video, it was really easy to follow start to finish! The only complaint I have is the code isn't in the description like you said it would be.
@ishanmundra6891
@ishanmundra6891 6 жыл бұрын
Yo that man Ishan hella smooth
@BackToBackSWE
@BackToBackSWE 6 жыл бұрын
yeah
@Travis-ko2jo
@Travis-ko2jo 6 жыл бұрын
@@BackToBackSWE for real
@BackToBackSWE
@BackToBackSWE 6 жыл бұрын
@@Travis-ko2jo !!!
@bestsaurabh
@bestsaurabh 3 жыл бұрын
I never see your code, you explain the algo and I try to code it myself. Thanks for the great explanation
@mrunaldave6781
@mrunaldave6781 4 жыл бұрын
How can your content be so good man? Video after video. The best. Take a bow.
@jhamukesh998
@jhamukesh998 5 жыл бұрын
You are the best tutor on youtube for dsa. Please make more and more videos to help us !!! Thanks a lot
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
ok
@shashwatshukla6492
@shashwatshukla6492 3 жыл бұрын
Seeing that you have a Video on a Question that I'm Stuck on........gives me hope that I'll ever get stuck on this Type of Question Again.......Thanks Man....I Can't thank you enough......you've itched some questions and concepts into my Brain.
@grovervishal591
@grovervishal591 5 жыл бұрын
I love the way you explain this problem. I have solved this problem in the past but every time I struggle to traverse the parent nodes of start element. The way you add Hashmap to traverse the root is amazing. I dont think that I will forget this method now. Thanks for sharing this.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
nice
@Sky-nt1hy
@Sky-nt1hy 4 жыл бұрын
Hey! I really do appreciate your videos. It makes everything super clear! You’re one of the best teachers so far. Keep being hyped!! From South Korea
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
nice!! thanks for commenting
@sammynochains3455
@sammynochains3455 4 жыл бұрын
This man is saving lives out here . I am subbed and hooked .. please keep uploading .. love your work and approach to problem solving and getting that across to people in a way that feels 'for a lack of a better word. Personal .
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
great to hear and thx
@AnjalySB
@AnjalySB 4 жыл бұрын
I am a beginner in DS and algorithm. Have gone through 3 other channels. But I would say this is the best. Very brilliant way of conveying. Thank you
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@vedantiyangar151
@vedantiyangar151 5 жыл бұрын
I kinda had doubts as to whether this will work with different nodes having the same value. And then I saw the code and realized you were storing the node references instead of the actual values. Thanks!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Ah yeah, memory addresses have to to be unique.
@nelsonthekinger
@nelsonthekinger 4 жыл бұрын
All the video was super cool to watch, but the humor again... stole the show!(at the end) Great Job!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@yifanzhang1211
@yifanzhang1211 5 жыл бұрын
Your explanations are the clearest I have ever seen. I've been spending hours on this problem, then I understand the solution within 15 minutes by watching this. I appreciate you uploaded all these great explanations. I love them, I mean all of them.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Aw thanks haha, dang, the first videos suck
@pinakisaha9917
@pinakisaha9917 4 жыл бұрын
You literally put lot of effort to make us understand. Appreciate it a lot.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@parthkhanna8542
@parthkhanna8542 4 жыл бұрын
Only a word can describe you as a whole....... and that word is AMAZING
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thx
@shwetabhardwaj1131
@shwetabhardwaj1131 5 жыл бұрын
A perfect stop to every tricky problem, Thanks a ton! But is this the right choice to watch a video for a new topic? Basically, how do you suggest to watch your videos?
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
We are releasing a new platform to keep everything organized today
@caseyschneider1974
@caseyschneider1974 5 жыл бұрын
Firstly, thank you for your work. You are definitely the best on youtube doing these walkthroughs and a huge help to many. Second, could you also iterate through the tree and construct a new graph (list of edges), and then do a regular graph bfs to k distance? Although its an extra step it is still the same time complexity, so it is a trade off for a little more simplicity?
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
"Could you also iterate through the tree and construct a new graph (list of edges), and then do a regular graph bfs to k distance?" yes "Although its an extra step it is still the same time complexity, so it is a trade off for a little more simplicity?" Yes, still O(|V|+|E|) as it is BFS. And also O(|V|) space. Just the "real" space usage will be more if we clone the whole graph.
@123aniruddhsiddh
@123aniruddhsiddh 4 жыл бұрын
But that's not the question bro
@jamestak1526
@jamestak1526 4 жыл бұрын
This is the beast channel I ever seen.THKS you and your team make the toppest resources available for us.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ye
@jamesfifth8479
@jamesfifth8479 4 жыл бұрын
really helpful this video, the clearest explanation in KZbin, thank you so much
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@kakashisenpai99
@kakashisenpai99 4 жыл бұрын
Was stuck in this qsn for almost a day . Thanks dude!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@abhilakshsharma1275
@abhilakshsharma1275 5 жыл бұрын
Such an ingenious approach ! Hats off to you mate. Keep posting :)
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thanks
@dankokozar
@dankokozar 5 жыл бұрын
You are brilliant, having a great gift of presenting, and also your video editing and timing is great (cutting out the right stuff). Subscribing!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thanks haha
@quantum598
@quantum598 3 жыл бұрын
Benyam had to join the SWE website cause the content is amazing...BUT REAL TALK in an interview where you spent 20-30 minutes on behavioral, it would be pretty wild to get this!!! 1 main function with 3 helpers approx 80+ lines of code (for us java peeps ) , 'i cry everytim'
@tapasu7514
@tapasu7514 5 жыл бұрын
Love the way you start with your thought process, brilliant. Keep up the hard work
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thanks, will do
@spicy2112
@spicy2112 5 жыл бұрын
Thank you so much for the video. Crisp and clear. No bullshit. Love videos like these!! Keep up the good work!!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thanks
@manojrajasekar6035
@manojrajasekar6035 4 жыл бұрын
Such a Clear explanation of the thought process and the solution ! Great one as-usual
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@amitupadhyay6511
@amitupadhyay6511 2 жыл бұрын
the best explanation. Got the way in first 5 minutes itself.
@uppubhai
@uppubhai 5 жыл бұрын
This guy is so much clear in his thought process
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
This guy agrees :) haha
@AdwantGoutam
@AdwantGoutam 5 жыл бұрын
Nice one. I like the simplicity and explanation. Thanks for that!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sure
@sujithameriga7348
@sujithameriga7348 10 ай бұрын
It was an amazing explaination. It made me think about other problems as well. Good job guys!
@FreddGuillen
@FreddGuillen 4 жыл бұрын
love this video! Thanks for share it. BTW the space and runtime complexity explanation was awesome! :) hehe
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks and thanks
@ricardobaeta3184
@ricardobaeta3184 4 жыл бұрын
using this to quick learn binary trees, super descriptive and clear, Great Work!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thx
@prachurjyabasistha4682
@prachurjyabasistha4682 4 жыл бұрын
Man!...You are GOD!!..Again Best explanation on the entire internet!!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
im normal
@nayanikau2059
@nayanikau2059 4 жыл бұрын
Like your explanations because you focus on the intuition and approach behind reaching the solution. Also, you repeat important keywords quite a bit which is helpful in understanding a difficult/new approach. Keep up with the good work :)
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ok
@mrkyeokabe
@mrkyeokabe 5 жыл бұрын
Was able to solve this problem on my own after listening to your great explanation. Thanks!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sweet
@mananarora5027
@mananarora5027 4 жыл бұрын
This concept was awesome !!! Great video
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@who_fkn_cares
@who_fkn_cares 5 жыл бұрын
Great walkthrough! Loving these videos.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sure
@suhasnayak4704
@suhasnayak4704 5 жыл бұрын
Amazing Explanation, thanks Benyam!!!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
hey thanks
@raghavmittal5352
@raghavmittal5352 4 жыл бұрын
You are brilliant sir.Always come to your channel whenever got stuck
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks.
@ruditrahul3638
@ruditrahul3638 3 жыл бұрын
Can anyone share me the code link!!! Its not there in the description
@pkboolean
@pkboolean 3 жыл бұрын
Great explanation, best I’ve seen. Keep it up!!
@rbragdish
@rbragdish 3 жыл бұрын
Thank you so much for explaining with such clarity and articulation so that even a newbie like myself can understand how to go about solving these types of problems!
@anarce
@anarce 6 жыл бұрын
Hi Ben, thanks for another fantastic video. Just wondering if you take any requests for specific problems? Recently, I was stuck on the “Median of two sorted arrays” problem and none of the tutorials were any helpful. I also heard it’s quite a popular question. I know you probably already have an agenda in mind but it’d great if you can cover that. Thanks again for these tutorials!
@BackToBackSWE
@BackToBackSWE 6 жыл бұрын
hahaha yes. Thank you for asking so kindly. Yes that is a question on the very top of my mind. I am very aware of it and want to cover it but have no idea when it will happen. So much ground to cover.
@raksstrife1233
@raksstrife1233 6 жыл бұрын
No offense to Ben but search for Tushar Roy, he has explained it quite well in my opinion.
@raksstrife1233
@raksstrife1233 6 жыл бұрын
Actually XD Ben has the link to Tushar Roy's channel in his description.
@BackToBackSWE
@BackToBackSWE 6 жыл бұрын
@@raksstrife1233 I'll explain it better 😱😱 (try to)
@BackToBackSWE
@BackToBackSWE 6 жыл бұрын
@@raksstrife1233 Yeah. I mean...this is all about making resources available and I'd be amiss if I didn't acknowledge his channel since it is huge. But I want to do it better than him of course.
@pabloruiz577
@pabloruiz577 5 жыл бұрын
Hi, I still don't see how you have been able to include parent 3 from start root node 5. Shouldn't we have to start traversing the "graph" from the root 3 before so we can know that 3 is indeed a parent of 5? I feel like before you started implementing the solution, it was going to be a 2 step process: - 1st traverse the tree to have the desired mapping - 2nd graph traversal now that we can go upwards. But then, you have just started right away at 5 with the capability of going upwards. Where did I loose you? Thanks! Awesome content : )
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Hey, I don't remember the example in detail as I did this nearly a year ago. Could you condense the question or give me timestamps? I am rapidly responding to youtube comments
@praveerdas4817
@praveerdas4817 4 жыл бұрын
Same problem for me as well. Not able to get you when you got 3 as a parent of 5
@manujetley2800
@manujetley2800 4 жыл бұрын
@@BackToBackSWE : when you started adding the nodes in the hashmap, You started directly from node 5 (at 9:22 ). How did you reach node 5 directly ??.... Secondly , i am assuming that you first wrote, the code to recursively reach node 5 , but if thats the case then how will you know whose the parent of the node 5 once you have already reach node 5 ??... . I understand the point that we are treating it as an undirected graph but it still technically is a Tree which is directed in nature. I hope i am able to cleary state the problem??
@kennyhar7179
@kennyhar7179 4 жыл бұрын
yes same problem. Can you explain how to traverse through the tree from the node to create a hash table that allows any node to access their parents? Essentially the code behind how you make it bidirectional
@tingtingzhao7482
@tingtingzhao7482 3 жыл бұрын
Very clear explanation. The intuition and thought process helps me a lot!
@JimmyCheng
@JimmyCheng 5 жыл бұрын
Really good job, amazing stuff, keep it up!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
workin' on it.
@shreejitnair2174
@shreejitnair2174 4 жыл бұрын
Man what a terrific explanation.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@avoo1d
@avoo1d 4 жыл бұрын
I love it, very brief explanation, much better than looking at the discussion of leetcode Lol
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
yeah, fuck leetcode
@anuragagnihotri5238
@anuragagnihotri5238 3 жыл бұрын
You explanations are simple and easy to follow
@SUNILKUMAR-gy1je
@SUNILKUMAR-gy1je 4 жыл бұрын
thank you ben you are amazing dude i was stuck with this for 4hours and u explained it in 15 minute's thanks again
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure.
@tulikamal
@tulikamal 5 жыл бұрын
Excellent explanation! Please make more videos on the various algorithmetic problem
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Ok, will do
@yuhaoliao3270
@yuhaoliao3270 2 жыл бұрын
Thanks! This video is really helpful for me to prepare the coding interview!
@BackToBackSWE
@BackToBackSWE 2 жыл бұрын
Thank you, glad you liked it 😀 Do check out backtobackswe.com/platform/content and please recommend us to your family and friends 😀
@poojabennabhaktula4883
@poojabennabhaktula4883 3 жыл бұрын
Beautiful explanation, very grateful for your videos
@lifehacks9450
@lifehacks9450 5 жыл бұрын
u deserve a lot more subscriber then that u have
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Nah, it's chill
@srilekha9177
@srilekha9177 5 жыл бұрын
Great video. Clear explanation. Thanks a ton. Love you guys. You both made it simple.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
It is just me now but thank you!
@srilekha9177
@srilekha9177 5 жыл бұрын
@@BackToBackSWE Okay. All credit goes to you.
@eyeamkd
@eyeamkd 2 жыл бұрын
That moment of happiness when you come to know that there's a BTBSWE solution for the problem that you're currently stuck with!
@apollossevere8602
@apollossevere8602 3 жыл бұрын
Bro, where the heck is the code in the description?!??
@pushkardureja6863
@pushkardureja6863 4 жыл бұрын
One of the best explaination 👍👍👍👍
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thx
@ananya___1625
@ananya___1625 2 жыл бұрын
Crystal clear explanation!! Thanks a ton for your efforts and time
@Dyslexic_Neuron
@Dyslexic_Neuron 4 жыл бұрын
Awsome bro ! Good explanation
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thx
@JustSomeYTChannel557
@JustSomeYTChannel557 4 жыл бұрын
Actually, you can save some more space. Instead of using a "seen" HashSet, you can simply remove any node you already put in the queue from the "parent" map. That way, if you try to add a node to the queue, whether it's a parent, left or right - if it isn't in the map, you simply don't add it, since you already "visited" it. This solution will not only remove the duplicate space, but actually reduce the space as you go on.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks for this
@sahukarinaveenkumar3188
@sahukarinaveenkumar3188 4 жыл бұрын
The way you explain the Concepts are very clear... But it was very helpful if u explain the problem along with some pseudo code😀
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
We have a code sample up but the repository is deprecated - we only maintain backtobackswe.com now.
@fiazB
@fiazB 3 жыл бұрын
Where is the code? I could not find it in the description.
@Randomtaker
@Randomtaker 4 жыл бұрын
Thank you dude. First, i thought i should use hashmap for storing distance of nodes from the target node but ur tricked help to map parenting of node that help me
@anupkmr03
@anupkmr03 5 жыл бұрын
Awsome solution with great explanation technique. Thank you so much for the solution.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thx
@christopher48778
@christopher48778 4 жыл бұрын
how do you track the level you are currently on? would you have to push the level of a node onto the stack with it?
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
I don't remember this problem or the code much but yes, a tuple of sorts can be done. If I remembered this better I could help in more detail but I'm fast replying to a surge of comments.
@JustSomeYTChannel557
@JustSomeYTChannel557 4 жыл бұрын
Before starting the loop on each level, you check the size of the queue, and you loop on this size, popping nodes. Once you reach that size, you simply increment the level and repeat. For example, in this example, at the beginning you push "5" as a starting node to the queue, and check the queue size, which is 1. You then loop from 0 to 1 (1 loop run) and pop the node, adding it's left, right and parent to the queue. Since you now finished the loop, you increment the level by 1 (it was 0 before, now it's 1). You now check the queue size (in our example, it's 6,2,3, so the size is 3) and you loop from 0 to 3 (3 loop runs), once this is done, you increment the level by 1 (was 1 before, now it's 2) and repeat. This way at the end of each loop, if you reach the level of K, you simply return all the current values in the Queue as you know for certain it's the nodes you're looking for.
@ish1285
@ish1285 4 жыл бұрын
So intuitive and amazing!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@xckevin8718
@xckevin8718 5 жыл бұрын
Thank you so much for this nice explanation. I should have subscribed your channel earlier. I'm having an Amazon interview next week but I feel that I'm not prepared yet.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Nice, good luck, don't let the result determine your worth
@riyadhhossain8733
@riyadhhossain8733 3 жыл бұрын
where is the code link in the description??
@himachaligrace844
@himachaligrace844 4 жыл бұрын
Max comparison for binary search will be??
@shobhitkumar6820
@shobhitkumar6820 4 жыл бұрын
best resource of the question😊😊😊😊
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@sunginjung3854
@sunginjung3854 5 жыл бұрын
This is a great video. Very clear and easy to understand explanation. Why don't you make a playlist where you organize your videos in order(e.g. 1st video to watch and so on) for people to follow?
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
people have suggested this but....1.) I can't make anymore playlists...I've hit the cap....and 2.) I don't think there is any order...it is just whatever topic you are weak at...and you practice that....I think that's the optimal strategy....there can be no master order of questions because that ignores that everyone is generally different and more or less adept at different categories to different degrees
@xiaoxiao5333
@xiaoxiao5333 5 жыл бұрын
Thanks very much for the awesome videos and detailed explanations. Really loved the series. Wanted to ask if you can also make a video to explain the method using DFS to solve this problem? Thanks!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sure and it is basically the same
@jaydhanwant4072
@jaydhanwant4072 3 жыл бұрын
I like how you squeeze your eyes to emphasise something :D
@techykush7192
@techykush7192 3 жыл бұрын
thank u so much sir and entry of ben is just awesome 🤣🤣
@sai2ramya
@sai2ramya 3 жыл бұрын
great great great explanation!!
@cmubill
@cmubill 2 жыл бұрын
Very clear explaination. Hope you can make an DFS explain on this!
@BackToBackSWE
@BackToBackSWE 2 жыл бұрын
Thank You, Glad you liked it. Do check out backtobackswe.com/platform/content and please recommend us to your family and friends :)
@anuragv400
@anuragv400 3 жыл бұрын
Great explanation !! 🤩🤩🤩🤩
@elenadontsova4688
@elenadontsova4688 4 жыл бұрын
Love the idea, great solution, thank you!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@satishshingade8514
@satishshingade8514 4 жыл бұрын
Please continue uploading videos you teach really good..RESPECT+++
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ok
@sharatchandra9198
@sharatchandra9198 4 жыл бұрын
Extra ordinary explanation
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks lol
@salimzhulkhrni1610
@salimzhulkhrni1610 5 жыл бұрын
thanks for the clear explanation. your code was even well commented & easily understandable. cheers!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
cheers right back at you
@divijjain4674
@divijjain4674 3 жыл бұрын
where is the code though
@deathstrokebrucewayne
@deathstrokebrucewayne 4 жыл бұрын
Okai....Concluded....You are awesome :D
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@vineetrathee7334
@vineetrathee7334 4 жыл бұрын
GREAT explanation sir.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thx
@vishwashdwivedi9469
@vishwashdwivedi9469 4 жыл бұрын
Thank you for such a great explanation !
@sye119
@sye119 3 жыл бұрын
great explanation and ending, thanks Benyam!
@vigneshwaranr680
@vigneshwaranr680 4 жыл бұрын
Thank you so much for the detailed explanation.❤️🙏
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
Sure!
@lalitkumarmehta1721
@lalitkumarmehta1721 5 жыл бұрын
thanks bro, for this awesome explanation. Keep making more videos
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
ok
@rjkal
@rjkal 2 жыл бұрын
Thanks for the great video! However, I didn't understand how you arrived at target = 5 to begin with. We have to do multiple traversals then? One to identify the starting point and another to begin the iteration from the start point. Is that how this works? Or am I missing something? Or do you build the hashmap separately and then use it as a reference while working on the queue?
@MMOlocation
@MMOlocation 5 жыл бұрын
Having my series of internship interviews in about a month, been grinding leetcode, watching your vids and reading EPI for the past 1 month. Do you think 2 months of such prep is enough? I'm studying around 6 hours daily.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Depends on how ready you are, hard to gauge, only you can answer this
@Mai_Bharatwaasi
@Mai_Bharatwaasi 4 жыл бұрын
Thank-you!! video is helpful
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure.
@nandhiniperiyasamy4782
@nandhiniperiyasamy4782 5 жыл бұрын
Awesome explanation . Thank you so muchh
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sure
@raksstrife1233
@raksstrife1233 6 жыл бұрын
Hey Ben, great video! Keep up the good work. I have a request, would you please recommend a way to get good at Object Oriented design?
@BackToBackSWE
@BackToBackSWE 6 жыл бұрын
Eh...I mean, that's a hard thing to answer. Like...how did doctors get good at doctoring? It'd be a long history of study and learning. So many uncountable days absorbing information. All you have to do is practice. Practice coding, read books, watch KZbin videos. A great book I have read and recommend is called "Clean Code: A Handbook of Agile Software Craftsmanship" by Robert C. Martin
@raviverma-tj6dn
@raviverma-tj6dn 5 жыл бұрын
Extraordinary explaination Sir
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thx
@Od253
@Od253 Жыл бұрын
Always end up on this channel for some good algo explanations.
@BackToBackSWE
@BackToBackSWE Жыл бұрын
Thank you 🎉 We appreciate it. Please enjoy a special coupon from us - backtobackswe.com/checkout?plan=lifetime-legacy&discount_code=SUB 🚀
@yuktikhantwal2342
@yuktikhantwal2342 5 жыл бұрын
you guys are brilliant
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
ye
@icosmini
@icosmini 5 жыл бұрын
Hi, I love your videos, they're very clear! May I offer a suggestion though? Please don't put hints to the solution in the title, it spoils it when people are trying to solve it. Thanks!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Thanks! and ok haha
@AmolGautam
@AmolGautam 3 жыл бұрын
Thank you. Very well explained
@Iliketheravens
@Iliketheravens 3 жыл бұрын
Bro, this is crazy, I've watched a handful of your videos and swore I recognized some of the classrooms you've been in. Then realized we both are from the same school lol. Class of '18 and your videos are great refreshers for studying to get my next job. Keep up the good work and go terps 🐢
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 1,5 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Programming Loops vs Recursion - Computerphile
12:32
Computerphile
Рет қаралды 1,5 МЛН
Lowest Common Ancestor Between 2 Binary Tree Nodes (A Recursive Approach)
20:30
How to Remember Everything You Read
26:12
Justin Sung
Рет қаралды 3,2 МЛН
Can I Solve This Unsolved Math Problem?
16:21
CodeParade
Рет қаралды 290 М.
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН