Correct Binary Tree That Has Two Nodes Swapped - FAANG Interview Question

  Рет қаралды 23,995

Kunal Kushwaha

Kunal Kushwaha

5 ай бұрын

In this video, we'll learn how to correct a Binary Tree that has two nodes swapped, a frequently asked question in FAANG interviews.
Take part in the learning in public initiative! Share your learnings on LinkedIn and Twitter with #DSAwithKunal & don't forget to tag us!
👉 Resources
- Join Replit: join.replit.com/kunal-kushwaha
- Lecture code: replit.com/@KunalsReplit/Adva...
- Complete Java DSA playlist: • Java + DSA + Interview...
- Code, Assignments, & Notes: github.com/kunal-kushwaha/DSA...
➡️ Connect with me: kunalkushwaha.com
👨‍💻 Join WeMakeDevs: wemakedevs.org
#dsa #placement #leetcode

Пікірлер: 152
@KunalKushwaha
@KunalKushwaha 5 ай бұрын
👉 Resources - Join Replit: join.replit.com/kunal-kushwaha - Lecture code: replit.com/@KunalsReplit/AdvanceTreeQuestions
@user-iz5gb1zt3e
@user-iz5gb1zt3e 4 ай бұрын
Bro still waiting for your dynamic programming course I believe only you can make it easier for beginners to learn this compared to other resources available .Please increase the pace..
@architpandey8172
@architpandey8172 Ай бұрын
Hey Kunal Hope u are doin fine. Please bring Graph and DP series. We are aware that bringing such a quality content for free is hard but we really need it!!!!
@rohitnandagawali1589
@rohitnandagawali1589 5 ай бұрын
we all are eagerly waiting for your Dynamic Programming series
@Griffith_1802
@Griffith_1802 3 ай бұрын
Wait for 2 years 😂😂
@debjit2660
@debjit2660 3 ай бұрын
We know you are very busy, but please complete the course, the faith we have on you after going through the course is unimaginable. Cannot learn from anyone else after watching your skills.
@LordSarcasticVlogger
@LordSarcasticVlogger 2 ай бұрын
Nahi padhaega vo…usse paisa chaiye
@Bunny-lq2ic
@Bunny-lq2ic 5 ай бұрын
Please bring Graphs and DP videos. Placement season is here and we really need it. Thank you!
@user-bf7yz3qd2i
@user-bf7yz3qd2i 4 ай бұрын
isko nhi aata dsa , pehle khud pdhega aur bekar ki video bna dega, kisi aur se padh le bhai kyon apna time waste kr rha.
@Prasad.code.
@Prasad.code. 27 күн бұрын
​@@user-bf7yz3qd2ichannel batao bhai java + dsa keliye
@user-qx8tp1fe9d
@user-qx8tp1fe9d Ай бұрын
As the countdown to the end of my placement ticks closer with just three months left, I've been relying heavily on this playlist. It's been incredibly helpful, and I've found it so engaging that I've struggled to follow any other courses. Every time I try, it just reminds me of how fantastic this free course is. I understand that creating quality content takes time, but the anticipation for new videos is high. It's disappointing when a course isn't completed as promised, especially when it's been so valuable to us, especially with companies coming to our college to hire us in three months. Hoping to see it completed soon!
@083charanpreetsingh7
@083charanpreetsingh7 Ай бұрын
How much time it took to u to complete the course till here
@Greed_._
@Greed_._ Ай бұрын
Hey I Just passed my 12th, I am going to take cs in clg, Anything you guys can recommend me?(Where to start?whom to follow?Rodamap?etc)
@yahyamohamoud7290
@yahyamohamoud7290 Ай бұрын
@@Greed_._do this guys course and all the practice problems best as possible and ur set
@samratbhattacharjee8281
@samratbhattacharjee8281 5 ай бұрын
following your complete playlist...Really helpful :)
@ShivamSingh-kj8ew
@ShivamSingh-kj8ew 5 ай бұрын
Happy new year Kunal and to all folks
@akanksha.gupta8
@akanksha.gupta8 5 ай бұрын
Hi Kunal you are the best .. waiting for your dynamic programming course .
@AkshaySingh-uw2qq
@AkshaySingh-uw2qq 5 ай бұрын
Hey still waiting for your dynamic programming course I believe only you can make it easier for beginners to learn this compared to other resources available.
@stevenkenny7622
@stevenkenny7622 4 ай бұрын
You are better off learning on your own, his DSA course has now been more than 2 years in the making. It's a free course, he is not obligate to commit neither should anyone wait for it
@AbhishekPandey-cz5kw
@AbhishekPandey-cz5kw 4 ай бұрын
Hi Can you suggest any courses for that particular topics? Please@@stevenkenny7622
@Pzpr12
@Pzpr12 3 ай бұрын
​@@stevenkenny7622hello brother pls help me which course I need to choose for DSA with Java . I want to start immediately. Please help mee
@anshumangogoi148
@anshumangogoi148 2 ай бұрын
Glad to have learnt from you Sir, we know you are busy with your life and honestly it's ok to look for self. But just wanted to thank you for the knowledge you gave till date, for rest remaining concepts will follow others as placements season is much closer now. But will surely wait for your videos on DP and Graphs. Thank you for all your efforts. Kudos to your work❤️.
@deepakcosmos
@deepakcosmos 5 ай бұрын
I saw someone in youtube telling about best DSA course to follow in youtube, and ranked in 3rd place by saying it is not complete course or discontinued in between, I was just praying u to back and u r here, u just became my morning starting routine of learning
@FA17.
@FA17. 3 ай бұрын
which courses did he rank 2nd and 1st?
@LordSarcasticVlogger
@LordSarcasticVlogger 2 ай бұрын
No Course
@gojosatoru988
@gojosatoru988 5 ай бұрын
Thanks for the course sir!! Really helpful
@anonymous1257
@anonymous1257 5 ай бұрын
happy new year bro , can you please give a sequence for most important topics to least in dsa
@ishanshrivastava4783
@ishanshrivastava4783 2 ай бұрын
Bro i have said to all my friends to learn DSA from this playlist... But everyone is like its not completed... Please focus on this and compleye it... I am following it since 2d sem reached jn 4th sem... I wanted to complete DSA till this sem ends... Please complete the playlist as soon as possible
@KishoreSR
@KishoreSR Ай бұрын
Hello bro which resources are you following now for DSA in Java
@jnayehsirine6222
@jnayehsirine6222 13 күн бұрын
I CANNOT WAIT FOR DP PLAYLIST HONESTLY SUPER EXCITED
@Kunaltwts
@Kunaltwts 5 ай бұрын
what are the left topics in dsa playlist ?
@vamsi7636
@vamsi7636 5 ай бұрын
Eagerly waiting for Graphs and DP
@jibransaifi5207
@jibransaifi5207 5 ай бұрын
Kunal please add more questions to assignments. Please review again .....on assignment.. please please
@samratbhattacharjee8281
@samratbhattacharjee8281 5 ай бұрын
waiting for graph and dp...upload as soon as possible :)
@home5871
@home5871 2 ай бұрын
Love your videos Kunal can u please complete this playlist as soon as possible
@deepranjan3474
@deepranjan3474 5 ай бұрын
Waiting for graph and dp series.... 😊
@akshaya3264
@akshaya3264 4 ай бұрын
When will you complete This series atlist notify us about your plan for this series❤❤
@sufiserious798
@sufiserious798 7 күн бұрын
There is a case where both the violation nodes are adjacent to each other in the inorder traversal. In this case, the second violation gets skipped and the second node reference variable stays null, resulting in compile time error. To resolve that, you can create an extra reference variable as 'adjacent' or 'possibleSecond' and whenever you find the first violation node, make sure that you record the current node in the extra variable. Later when swapping the values, if we find that the 'second' reference variable is null then we can just assign the 'possibleSecond' node reference to it and the case will be handled.
@sahzadhussain12e46
@sahzadhussain12e46 Ай бұрын
Thanks for your efforts
@HEMADRI116
@HEMADRI116 3 ай бұрын
Bhai we are waiting for dp and graphs in this series, please upload ASAP!!! with love your lovely subscriber ❤❤
@frisbee.976
@frisbee.976 5 ай бұрын
amazing teacher,please upload graph and dp asap.
@lokeshlokesh7367
@lokeshlokesh7367 5 ай бұрын
Happy new year Kunal
@preetichib2254
@preetichib2254 5 ай бұрын
Happy new year 🎉
@Bunny-lq2ic
@Bunny-lq2ic 4 ай бұрын
Hey just let us know if you are goin to bring Graphs, DP, TRIE and all remaining topics or not? We will have to move to other channels if not.
@hemant64616
@hemant64616 2 ай бұрын
please please kunal bhaiya complete this course we really need this !!!
@user-cu4yv6ox1z
@user-cu4yv6ox1z 2 ай бұрын
Kunal bhai , waiting for next graphs and dynamic programming videos bhai😢😢😢
@mdmustafaali885
@mdmustafaali885 4 ай бұрын
Is this playlist is still continue..?
@prasannakumardeep9394
@prasannakumardeep9394 4 ай бұрын
Hi bro, can you share us complete handwritten notes. It will be easier to revise entire bootcamp
@somasekhar2789
@somasekhar2789 3 ай бұрын
Hii Kunal Sir, please complete Graphs and DP also as early as possible
@neerajkashyap2624
@neerajkashyap2624 4 ай бұрын
Upload more pls ❤
@harshitnahata1355
@harshitnahata1355 24 күн бұрын
SIr can you make videos on Dynamic Programming and Graphs. It will be really helpful as your explanations and teaching method is best i found on youtube.
@satyjitdeshmukh5949
@satyjitdeshmukh5949 5 ай бұрын
Please upload graph and dp series
@kumardev8341
@kumardev8341 2 ай бұрын
Hey kunal please make graph and dynamic programming videos :->
@ishpreetsingh3408
@ishpreetsingh3408 4 ай бұрын
When you'll complete this playlist ?
@sriramphysics5853
@sriramphysics5853 5 ай бұрын
Thanks kunal
@somaharshithkumar2004
@somaharshithkumar2004 Ай бұрын
Bro please complete dynamic programming and graphs waiting for completion of your playlist.
@user-cu4yv6ox1z
@user-cu4yv6ox1z 2 ай бұрын
Kunal bhai, waiting for graphs and dynamic programming
@home5871
@home5871 Ай бұрын
Hey kunal is this playlist is complete?
@rahulsinghrajput5139
@rahulsinghrajput5139 5 ай бұрын
Please, quickly complete the DSA COURSE
@arpitsinha5684
@arpitsinha5684 4 ай бұрын
bro yeh kitna aur reh raha hae?
@mabirearseso
@mabirearseso 5 ай бұрын
Sir please complete the course.।
@Power_OfWisdom
@Power_OfWisdom 5 ай бұрын
Happy New year Kunal bhai ❤
@LordSarcasticVlogger
@LordSarcasticVlogger 2 ай бұрын
Thanks and same 2 uh
@ritik3514
@ritik3514 14 күн бұрын
it was nice watching all your tutorial till now can you also make playlist strings like linklist playlist with my dsa questions
@un_observed_
@un_observed_ 3 ай бұрын
Please anyone who is following course since beginning please which topics of DSA are left here as im going to start my DSA so whether will this course get complete or not..... Please anyone reply....
@Chessmaster1093
@Chessmaster1093 3 ай бұрын
Bhaiya please continue the series
@rajesht8157
@rajesht8157 Ай бұрын
Waiting for graphs and DP series
@Vivekpatel188
@Vivekpatel188 Ай бұрын
can anyone tell me the missing topic that is not done on this playlist?
@vudumulanagasairahul1298
@vudumulanagasairahul1298 3 ай бұрын
please complete this DSA boot camp as early as possible as our placement preparation started for 2025 batch we are waiting for new videos it very useful to us
@hemant64616
@hemant64616 2 ай бұрын
kunal bhaiya please continue the series .... please ...... please
@LordSarcasticVlogger
@LordSarcasticVlogger 2 ай бұрын
Nahi kruga…bta kya ukhaad lega ?
@dhruvthakur8383
@dhruvthakur8383 5 күн бұрын
Hey kunal , love your vedios , i just have a quick question , is this course really enough to get a job at maang companies or do we need to do development too ( web , ai , developer,etc)too , to get placed?
@kartikverma6988
@kartikverma6988 4 ай бұрын
🎉🎉🎉
@aaabb-ww8dp
@aaabb-ww8dp 5 ай бұрын
I think Graphs, additional topics (sliding window, tries, kadane's algorithm) heaps questions will be better first than dynamic programming since dynamic programming is rarely asked while those others are essential for interviews
@user-wd5xn3jh3t
@user-wd5xn3jh3t 2 ай бұрын
Please upload graphs and dynamic programming classes please
@NavneetYadav-eu2zs
@NavneetYadav-eu2zs 3 ай бұрын
Please upload graph and DP videos.
@gpraneeth7693
@gpraneeth7693 3 ай бұрын
Waiting sir
@professinalkingnirmal9605
@professinalkingnirmal9605 3 ай бұрын
Sir provide more binary tree advance level questions with answers
@tanishqsingh5085
@tanishqsingh5085 4 ай бұрын
Is this course playlist ended or still more videos to come?
@LordSarcasticVlogger
@LordSarcasticVlogger 2 ай бұрын
Ended..Officially…He told this on his Github Channel
@mansirawat3578
@mansirawat3578 3 ай бұрын
Bhaiyaa bring all the videos soon pls plsss 🤍🫶🏻
@kartikverma6988
@kartikverma6988 4 ай бұрын
❤❤❤
@Nccarmy2024
@Nccarmy2024 2 ай бұрын
hello sir please complete DSA full playlist please sir
@user-wd5xn3jh3t
@user-wd5xn3jh3t 2 ай бұрын
Bro please upload next videos please waiting waiting waiting 😔😔😔😔😔😔😔
@yashpaliwal9053
@yashpaliwal9053 3 ай бұрын
@Kunal Kushwaha Can you please help us to give roadmap that how to switch from service based to product based company.
@LordSarcasticVlogger
@LordSarcasticVlogger 2 ай бұрын
Mere paas hain lekin bina paise ke main kyu btaau?
@user-bb9hm1zx9x
@user-bb9hm1zx9x 4 ай бұрын
Hi I am searching for your graph lessons did you teach them?
@satyam1543
@satyam1543 4 ай бұрын
learn graph and dynamic programming from "take U forward" youtube channel (watch latest playlist which have roughly 50-55 videos)
@aabbb4150
@aabbb4150 4 ай бұрын
Please finish hashmaps and heaps questions before graphs and dsa it's a very important topic sir
@LordSarcasticVlogger
@LordSarcasticVlogger 2 ай бұрын
Nahi kruga bhai
@muditgupta3520
@muditgupta3520 11 күн бұрын
Can you tell us when you will start Dynamic Programming
@abhinavsingh3005
@abhinavsingh3005 27 күн бұрын
please bring dp and graph series
@premsoni619
@premsoni619 4 ай бұрын
please complete this course
@nakjbdksdvfs
@nakjbdksdvfs Ай бұрын
Can anyone tell me the remaining topics to learn
@tusharagarwal5306
@tusharagarwal5306 3 ай бұрын
Waiting for Graphs and Advanced Dynamic Programming
@yvanzara8922
@yvanzara8922 2 ай бұрын
Is this the last video in java and dsa course ? Did whole java and dsa complete here? Pleaee tell me
@devprasad8767
@devprasad8767 2 ай бұрын
No bro, graphs and dynamic programming is pending
@nayanbirla4478
@nayanbirla4478 5 ай бұрын
Waiting for Graph and DP
@siddhantvishnu4309
@siddhantvishnu4309 5 ай бұрын
Thank you!! Could you also launch the heaps and hashmaps questions video?
@GovindaKumarSingh-qi3ni
@GovindaKumarSingh-qi3ni 4 күн бұрын
Please complete series 😢
@Whitedevil_6204
@Whitedevil_6204 3 ай бұрын
Bro upload the graph and please complete the series
@manojshobithdavuluri5156
@manojshobithdavuluri5156 5 ай бұрын
bro..could you please provide us some notes so that we can mainly focus on coding part not to worry about the notes taking part.
@pianolessonswithbless879
@pianolessonswithbless879 4 ай бұрын
Kunal i love your lessons and how you believe your lessons are the best, if you yourself don't believe in your lessons then who else will? I love that spirit but you don't reply toy comments😢
@vaishnavic392
@vaishnavic392 18 күн бұрын
PLEASE COMPLETE THE COURSE. WE'RE HIGHLY DEPENDING ON YOU. PLEASE 🙏🏻
@SHUBH63283
@SHUBH63283 5 ай бұрын
This dsa playlist will finish in 2030 , may be😅
@ritiksharma8137
@ritiksharma8137 26 күн бұрын
Bro please complete the series
@NareshNaresh-cl8rn
@NareshNaresh-cl8rn Ай бұрын
Sir please complete the course
@princenagar1686
@princenagar1686 17 күн бұрын
Finish Graphs and I will never complain that this course is incomplete 🐐
@akshanshsharma4316
@akshanshsharma4316 4 ай бұрын
Hi Bhaiya Add more videos
@Withlovemansi
@Withlovemansi 2 ай бұрын
Please next lecture sir
@rarefraction4378
@rarefraction4378 8 күн бұрын
can someone send me link for telegram and discord channel of community classroom?
@LordSarcasticVlogger
@LordSarcasticVlogger 22 күн бұрын
Subject: Update on DSA Playlist and Information on Upcoming Course Dear All, This is Kunal Kushwaha’s Personal Assistant reaching out to provide you with an important update regarding the DSA playlist. Please be informed that the DSA playlist has been concluded for some time, and no additional videos will be uploaded. We kindly request that you refrain from requesting more videos in this series. If you are interested in further content, we encourage you to consider purchasing our Continuation Course, similar to the offerings by Neso Academy. Further details about the Continuation Course will be provided soon. The course will be priced at approximately Rs. 90,999. Thank you for your understanding and continued support. Best regards, Rajat Malhotra Personal Assistant to Kunal Kushwaha Happy Learning!
@mymobile6271
@mymobile6271 3 ай бұрын
Waiting for dp videos
@user-sv9ov1ev9j
@user-sv9ov1ev9j 5 ай бұрын
I'm third year student can i start the bootcamp now and complete it within 5 months
@satyam1543
@satyam1543 4 ай бұрын
sure you can complete it within 6 months, if you learn daily
@user-sv9ov1ev9j
@user-sv9ov1ev9j 4 ай бұрын
thank you☺@@satyam1543
@random-xl3zm
@random-xl3zm 5 ай бұрын
Will dsa playlist get completed till the time my college end cuz I m gonna join first year soon 😂😂
@random-xl3zm
@random-xl3zm 5 ай бұрын
Hare krishna don't worry u all will get a job keep praying and have faith on God
@BabaYaga-vh8jq
@BabaYaga-vh8jq 12 күн бұрын
Bro complete the course
@SahdevSingh-io3qp
@SahdevSingh-io3qp 4 ай бұрын
Bro, 2:07, you said "7 is grater then its previous element" but it should be "7 is grater then its successor"
@EternalCoders
@EternalCoders 4 ай бұрын
can you make please in c++ , i am not comfortable with JAVA
@sarfarazsfz
@sarfarazsfz 4 ай бұрын
love babbar DSA playlist with C++ course you can search on you tube
@mansirawat3578
@mansirawat3578 2 ай бұрын
bhaiya, graphs and dp plss
@MoteeullahAzmi
@MoteeullahAzmi 4 ай бұрын
Why you are not creating in Hindi tutorial ?
@a-classzone1998
@a-classzone1998 5 ай бұрын
Desparetly waitiing for DP series. Please make it quick.🥺🥺🥺
@Kunaltwts
@Kunaltwts 5 ай бұрын
bhai khud se krlo yr, kunal bhai kitna hi padhayenge khudka vi to kam hota hai unhe
@SarthakBajaj-qj2ll
@SarthakBajaj-qj2ll 5 ай бұрын
what all is left in this course? except dp?
@Muigoku49
@Muigoku49 5 ай бұрын
​@@SarthakBajaj-qj2llquestions on heaps and hashmaps, sliding window graphs and dp
@aaabb-ww8dp
@aaabb-ww8dp 5 ай бұрын
i hope it can be completed by this summer do you think it will?@@Muigoku49
@deeksha_learner
@deeksha_learner 3 ай бұрын
Can u tell me how much this course is completed..in percentage??
@abhishekkgupta4294
@abhishekkgupta4294 Ай бұрын
bhaiii video dal do yrrrrrrrrrrrr
@user-lc7qt9rr6z
@user-lc7qt9rr6z 3 ай бұрын
Dp kab ayega
The Worlds Most Powerfull Batteries !
00:48
Woody & Kleiny
Рет қаралды 27 МЛН
Can you beat this impossible game?
00:13
LOL
Рет қаралды 64 МЛН
WHY THROW CHIPS IN THE TRASH?🤪
00:18
JULI_PROETO
Рет қаралды 5 МЛН
Ну Лилит))) прода в онк: завидные котики
00:51
Не обзор DJI Osmo Pocket 3 Creator Combo
1:00
superfirsthero
Рет қаралды 1,3 МЛН
Apple watch hidden camera
0:34
_vector_
Рет қаралды 57 МЛН
#miniphone
0:16
Miniphone
Рет қаралды 1,9 МЛН
сюрприз
1:00
Capex0
Рет қаралды 434 М.
Интереснее чем Apple Store - шоурум BigGeek
0:42