Generate All Strings With n Matched Parentheses - Backtracking ("Generate Parentheses" on LeetCode)

  Рет қаралды 93,475

Back To Back SWE

Back To Back SWE

5 жыл бұрын

Free 5-Day Mini-Course: backtobackswe.com
Try Our Full Platform: backtobackswe.com/pricing
📹 Intuitive Video Explanations
🏃 Run Code As You Learn
💾 Save Progress
❓New Unseen Questions
🔎 Get All Solutions
Question: Write a program that takes as input a number n in and returns all the strings with n matched pairs of parens.
Examples:
n = 1
[ "()" ]
n = 2
[ "(())", "()()" ]
n = 3
[ "((()))","(()())","(())()","()(())","()()()" ]
Approach 1 (Brute Force Then Validate)
Generate all (2 ^ (2n)) possible parenthese strings and then validate each for being balanced.
If n = 2 then the string length will be 2 times that since all open parentheses are matched by closed parentheses.
This lower bounds our time complexity.
Even if we restrict the enumeration to just sets with an equal number of left and right parentheses we will have choose(2k, k) strings to consider for validation.
Approach 2 (Directed Backtracking)
The 3 Keys To Backtracking
Our Choice:
Whether we place a left or right paren at a certain decision point in our recursion.
Our Constraints:
We can't place a right paren unless we have left parens to match against.
Our Goal:
Place all k left and all k right parens.
The Key
At each point of constructing the string of length 2k we make a choice.
We can place a "(" and recurse or we can place a ")" and recurse.
But we can't just do that placement, we need 2 critical pieces of information.
The amount of left parens left to place.
The amount of right parens left to place.
We have 2 critical rules at each placement step.
We can place a left parentheses if we have more than 0 left to place.
We can only place a right parentheses if there are left parentheses that we can match against.
We know this is the case when we have less left parentheses to place than right parentheses to place.
Once we establish these constraints on our branching we know that when we have 0 of both parens to place that we are done, we have an answer in our base case.
++++++++++++++++++++++++++++++++++++++++++++++++++
HackerRank: / @hackerrankofficial
Tuschar Roy: / tusharroy2525
GeeksForGeeks: / @geeksforgeeksvideos
Jarvis Johnson: / vsympathyv
Success In Tech: / @successintech
++++++++++++++++++++++++++++++++++++++++++++++++++
This question is number 16.6 in "Elements of Programming Interviews" by Adnan Aziz, Tsung-Hsien Lee, and Amit Prakash.

Пікірлер: 451
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Table of Contents: Introduction: Discussing The Past 0:00 - 0:33 Talking About The Implications Of Today's Video 0:33 - 1:08 The Problem Introduction 1:08 - 3:00 The 3 Keys To Backtracking (As Always) 3:00 - 5:01 Tracing The Recursion Tree: Watch The States 5:01 - 10:16 Time Complexity 10:16 - 10:48 Space Complexity 10:48 - 11:19 Subscribe To Us Plz 11:19 - 11:41 The code is in the description. Fully commented for teaching purposes and understanding.
@faizannasimhyder9011
@faizannasimhyder9011 2 жыл бұрын
Where is the code in the description?
@mohammedshahraazhussain1759
@mohammedshahraazhussain1759 5 жыл бұрын
When he speaks, It feels like he is about to get inside my brain.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
hahahahahahahaha, ok
@user-uq1nr5uh6l
@user-uq1nr5uh6l 5 жыл бұрын
Your voice is 66666 in chineses.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
@@user-uq1nr5uh6l what
@gaoyukuan
@gaoyukuan 4 жыл бұрын
@@BackToBackSWE "Six" pronounces the same as "溜", which means smooth or something is going really smoothly. It's often used as a compliment to say somebody or something is great (with the "smooth" feeling haha). Also, 5 * 6 means 5 times smooth.
@joon-tech
@joon-tech 3 жыл бұрын
this just made my day hahah
@theFifthMountain123
@theFifthMountain123 5 жыл бұрын
You are an awesome teacher. Please keep making these videos.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Thanks. That means a lot. And I will. As long as I can maintain my energy levels high this is my dedication.
@redherring27
@redherring27 4 жыл бұрын
0:08 Another day another boring question to cover. 1:08 Aoolrite so today we have a fascinating question.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
hahahaha sorry older video so I was goofier, no one was watching
@user-gz7fh8vo6e
@user-gz7fh8vo6e 5 жыл бұрын
What you said in the beginning resonated a lot with my experiences. Most videos out there explaining these solutions don't dive into the intuition behind making certain logical leaps for coming up with the solution, which is probably the crux of the difficulty. Keep up the great work.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thanks, hey
@sean721888
@sean721888 4 жыл бұрын
“This is the understanding I want you to understand!” Such a awesome video
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks - vintage video...from the origin days
@1328237
@1328237 3 жыл бұрын
Dude, I seriously cannot believe how much I struggled with this problem until I saw your thinking behind it. I typed up a solution in less than 5 mins. You are seriously a beast. Bless your soul man.
@hackytech7494
@hackytech7494 3 жыл бұрын
You are the best teacher on entire KZbin platform. No one have explained any problem in such an expressive way [ The way you teach ]. Thanks for your tutorials. Please don't stop teaching.
@stark.aritra
@stark.aritra 2 жыл бұрын
Keep making these videos brother, I looked at so many different people's explanations. But none explains so smoothly and deeply like yours. Keep up the good work, thanks.
@fudgemelons
@fudgemelons 5 жыл бұрын
Thanks! Struggled on this problem for a bit, but after 5 minutes of the video I was able to come up with the right answer.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
AWESOME! Go get em'
@3darpan
@3darpan 3 жыл бұрын
You have a whole other ability to make concepts clear. Thanks man!
@mosesindecks
@mosesindecks 4 жыл бұрын
I love your videos man. They are the greatest thing to have happened on KZbin since 30 Seconds to Mars.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
hahahahaha
@cool2suck
@cool2suck 5 жыл бұрын
I've watched countless algorithm explanation videos.. yours are by far my favorite!! I can actually understand the how & why to the approach instead of just learning this is what you do. Thank youuu
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Sure, tis' no problem
@jose.dances
@jose.dances 4 жыл бұрын
Haha, I love the intro. Thanks for everything you do, Ben. I have a harder time learning some of these concepts, so it's helpful to hear that there's other folks out there in similar boats.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
Old video, my bad for the intro - and great.
@hernabaer
@hernabaer 3 жыл бұрын
I can't believe how easily I understood the solution after I watched your video. I can't believe how easily I've written the actual code without looking any example code but only watching your video. Thank you so much!
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
great & sure
@johnleonardo
@johnleonardo 4 жыл бұрын
My favorite explanation yet. Very satisfying when I realized how easy this problem is.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
nice
@fracturedude
@fracturedude 3 жыл бұрын
Really great job explaining. I was having a hard time figuring out the recursion. You made it clear!
@yujiawang8168
@yujiawang8168 5 жыл бұрын
Amazing explanation! The clearest video on youtube I've seen to throughout this problem, thanks a lot!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thx
@vishwajeetmanhas_5864
@vishwajeetmanhas_5864 Жыл бұрын
Your ability to completely explaining crux of problem is amazing.
@coconutjuice7777777
@coconutjuice7777777 3 жыл бұрын
Thanks. Understood the solution literally within 2 mins (I had spent a decent amount of time on this before).
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
great
@SR-we1vl
@SR-we1vl 4 жыл бұрын
I guess this is the BEST CHANNEL FOR SOFTWARE INTERVIEWS!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
YES
@phanichoragudi57
@phanichoragudi57 5 жыл бұрын
Best explanation i've seen till now. Keep rocking!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thanks
@stephenplautz4682
@stephenplautz4682 3 жыл бұрын
This video, and especially the 3 keys to backtracking problems were incredibly helpful for me. I have gotten so mich better at spotting and applying backtracking to problems by applying them 😄
@sridharchaitanyagudur7462
@sridharchaitanyagudur7462 3 жыл бұрын
You have no idea what you are doing to my brain, you are making my neurons communicate at light speed. Thanks a lot. !
@Suyashmehra0
@Suyashmehra0 5 жыл бұрын
You know what man , you are the best teacher for backtracking out here .. keep up the good work mate ..
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thanks a lot
@flacco8985
@flacco8985 5 жыл бұрын
Extremely well explained. I was able to code it myself after watching the video, thanks!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
NO WAY! THAT IS AWESOME!!! That was literally my mindset going into this video. Funny you said that. You see now? The key is knowing our choice. Once we know our choice we CONSTRAIN that choice. And then as long as we define our goal correctly we will catch all answers at the bottom of the recursion in the base cases. Thanks for commenting! This is great to hear and makes me happy as a teacher.
@chiragkushwaha546
@chiragkushwaha546 4 жыл бұрын
Exactly no one has explained these problems like you do , nice work keep it up.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ye, will do
@frankchen9264
@frankchen9264 5 жыл бұрын
You are really awesome! I used to think about this question about an hour but I have no idea about that. But after listening to your video, I began more clear about that.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Yeah, I didn't solve this when I got it first.
@Endlessvoidsutidos
@Endlessvoidsutidos 4 жыл бұрын
love the vid btw i was recommended to this channel by friends who said it was the best channel for software engineer interview training videos killing the game son
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thx
@ekejma
@ekejma 3 жыл бұрын
He is so relatable... if I had an instructor like him in school it would have been so much easier.
@richardli9514
@richardli9514 3 жыл бұрын
"How do I even solve this under pressure?"--my number 1 question all the time on leetcode
@juliolopezmontalvo
@juliolopezmontalvo 4 жыл бұрын
I've seen a lot of explanations about this problem but this is so far the best explanations I've seen about using backtracking, thanks!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
great to hear and sure
@karthiklv29
@karthiklv29 2 жыл бұрын
You Sir are an amazing teacher, didnt even need to see the code, your explanation is gold.
@grantherman1971
@grantherman1971 Жыл бұрын
dude this is literally the type of explaination I have looked for. So many other videos just gave a soloution and didnt really explain wtf was happenig. You are wonderful
@BackToBackSWE
@BackToBackSWE Жыл бұрын
Really glad to help 🎉 Do you know about our 5-Day Free DSA Mini Course? Check it out here - backtobackswe.com/
@nsivaramprasad
@nsivaramprasad 4 жыл бұрын
Greatly explaned !! Problem understanding is simplified and it is lot better than going through the code for understanding !!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ye
@ElGalloUltimo
@ElGalloUltimo 4 жыл бұрын
You are damn right about there being no videos that explain it like you do. I think the way you do and you explain it the way I think. So thank you for doing these videos. The way you cut yourself off and end the videos abruptly cracks me up btw 😂
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
Yeah I was geekin back in the day, the me that exists now is not the same as the 80 or so Ben's you see on your screen.
@AllanPichardo
@AllanPichardo 4 жыл бұрын
Thank you so much for explaining this. Very intuitive. Also I'm glad the focus wasn't all on the code, more on the concept.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure and yeah
@Kushagra_21
@Kushagra_21 4 жыл бұрын
this is by far one of ur best video in recurssion problrms. Thanks a lotttt
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
I agrre minus having no mic
@sidagarwal43
@sidagarwal43 4 жыл бұрын
It's only because of your videos I have been able to improve my leetcode rank. Your videos are simple and informative, please dont stop this great work ever. Love from India.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
great and ok and wassup
@code_yoda1928
@code_yoda1928 4 жыл бұрын
You are a gem of a person for making our lives easier.You are god sent really
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@mirceskiandrej
@mirceskiandrej 2 жыл бұрын
Hated this problem but this is the best explanation on KZbin about how to solve it. Thank you.
@BackToBackSWE
@BackToBackSWE 2 жыл бұрын
Glad to be able to help. You should try our 5 day free mini course for some awesome content - backtobackswe.com/
@muthaiahpalaniappan8009
@muthaiahpalaniappan8009 3 жыл бұрын
I can able to use this pattern for various problems. Thank you so much. Today I came across a staircase problem. I used the same idea and it worked. Thank you so much 😍 Golden words ***1. Options 2. Constraints 3. Goal***
@mauricegoldberg7458
@mauricegoldberg7458 4 жыл бұрын
Extremely well explained. Really helped this problem finally click for me. Thank you very much!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
great.
@yanxichen4236
@yanxichen4236 5 жыл бұрын
Thank you for making these videos! You explain the concepts and your thought process very well. Please keep up the great work! Looking forward to learning more from you :)
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Thanks, and yeah...it is so tiring. I'm editing a video right now and I'm so tired. It's a lot of work.
@yanxichen4236
@yanxichen4236 5 жыл бұрын
Back To Back SWE oh no... Well, I for one am glad you’re making more videos, but please do it at a sustainable pace! Burnout is no fun - I’ve no doubt your channel is going to be one of the biggest swe prep channels one day, but there’s no hurry in getting there! And thank you thank you for your hard work :)
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
@@yanxichen4236 haha thanks
@waliiut08
@waliiut08 5 жыл бұрын
Every time I get stuck in a tough problem like that or cannot think to code properly (most of the time it is so depressing), I just see your explanation for that problem. After seeing your explanation I really feel that I have to think the way you think to solve any problem. Your videos help me to understand the problem and to get the motivation to think deep like a true engineer. Please keep up your good works. Best of luck and thanks a lot.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Nice! thanks, all this interviewing stuff doesn't really map to real engineering but it is an exercise in thought
@katyasadovnycha6670
@katyasadovnycha6670 4 жыл бұрын
You cracked me up lol.. ''another day, another really boring question to cover'! Can't agree more :D
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
my bad - old video I messed around more
@ujjvalsharma5055
@ujjvalsharma5055 4 жыл бұрын
Hey man wonderful explanation there. One of the best on the internet. Keep it up : ). I hope you post more videos
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@adityasoni1207
@adityasoni1207 2 жыл бұрын
ou are an awesome teacher. Please keep making these videos. Thanks a lot!
@BryanAndradeNYC
@BryanAndradeNYC 5 жыл бұрын
I've watched a few of your videos. I like the way you explain CS concepts clearly. Subscribed and thank you for taking the time to make this.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Sure, it is nothing. Just a part of my mission. I'd really appreciate it if you shared content you like or the channel on reddits like r/cscareerquestions. They keep denying me a post and I think these videos would help so many.
@shantanunair
@shantanunair 5 жыл бұрын
@@BackToBackSWE Wow sucks that they don't let you post. But I can see why. I'll try and spread the word on r/cscareerquestions and on hackernews.
@poojachi
@poojachi 5 жыл бұрын
Best explanation! looking forward for more videos!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
yep!
@davngo
@davngo 5 жыл бұрын
Thank you! This video helped me gain a better understanding of recursion.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
nice -Ben
@hbhavsi
@hbhavsi 5 жыл бұрын
Bless you dude! Great explanation and very well documented solution.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Thanks, wassup
@osamayounus4867
@osamayounus4867 2 жыл бұрын
This explains everything so well. Thank you
@harini3191
@harini3191 5 жыл бұрын
U made these concepts very clear and your teaching method is really good ! thanks
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sure
@ferneutron
@ferneutron Жыл бұрын
Really good content! I've been struguling with Batctracking/Recursion and the way how you explain is super clear and understanable. Thanks a lot!
@BackToBackSWE
@BackToBackSWE Жыл бұрын
glad to help!
@seungjinkim8860
@seungjinkim8860 4 жыл бұрын
Thank you! Drawing out the recursion tree is key to understanding this problem for me.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@mohamedabdul633
@mohamedabdul633 4 жыл бұрын
Wow you are genius man, I wish found this video before. I was depressed that I could not even solve this problem, this video helped me to break down the problem.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
nice, glad to hear
@rahul10anand1
@rahul10anand1 4 жыл бұрын
Crystal clear, thanks, Ben!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure.
@praptitrivedi7449
@praptitrivedi7449 5 жыл бұрын
Keep up the good work! Got the intuition quite well.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
good
@idundidit
@idundidit 4 жыл бұрын
man... I finally understand this. Thanks so much for putting this explanation together.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure thanks for watching
@hs9687
@hs9687 5 жыл бұрын
definitely the best explanation for this question. thanks a lot!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sure
@oludarevictor4611
@oludarevictor4611 4 жыл бұрын
Dude, you are amazing! I wish I found your channel before now
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
No ur amazing
@vinayak186f3
@vinayak186f3 2 жыл бұрын
I could code it by myself , all thanks to you sir .
@fathimasifasyedmusthafa9410
@fathimasifasyedmusthafa9410 8 ай бұрын
u are a great teacher , pls continue teaching. Ur voice first of all makes it interesting which every teacher needs.:) awesome !!
@darshansimha2166
@darshansimha2166 3 жыл бұрын
Thank you 🙏 . Really helped me visualize the backtracking.
@annarzheutskaya5301
@annarzheutskaya5301 3 жыл бұрын
A very good explanation! Great job.Looking forward to new videos.
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
Glad you liked it!
@avoo1d
@avoo1d 4 жыл бұрын
My God, I just love this explanation, Thank you very very much, because of your explanation I do not have to see already written code and did it myself with recur.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
nice thanks
@CodeSuccessChronicle
@CodeSuccessChronicle 3 жыл бұрын
It is indeed the best channel for s/w engineering students :D
@aanyaaryancoolgamers2013
@aanyaaryancoolgamers2013 5 жыл бұрын
Awesome explanation. You are making our lives so easy. Your channel gonna rock!!!!!!!!!!!!!!!!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thanks. just trying.
@palashkamble2325
@palashkamble2325 4 жыл бұрын
Dude, when you started with top down approach and said there can be two decisions to make at each node, I was like damn it is that easy to solve. Why couldn't I just come up with this approach? oh wait, I know, practice is all I need. Thanks btw :)
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
great and thanks.
@harinijeyaraman8789
@harinijeyaraman8789 4 жыл бұрын
YOU ARE AMAZING !!! Thanks a ton for this video
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure!
@linnaqiao6076
@linnaqiao6076 4 жыл бұрын
Really great and clear explanation! Thanks!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@chetanpatteparapu7600
@chetanpatteparapu7600 3 жыл бұрын
Thanks for your great explanation. I always struggle with Cominbators topic.
@bhavyachawla7176
@bhavyachawla7176 4 жыл бұрын
This video and that damn neatly commented code blew my mind . Thanks a lot !!!!!!! :D
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@mrunaldave6781
@mrunaldave6781 3 жыл бұрын
Dude you're the best. Thank you very much.
@kuralamuthankathirvelan
@kuralamuthankathirvelan 5 жыл бұрын
No comments , Simply Awesome 👌.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thanks
@charliel7041
@charliel7041 4 жыл бұрын
that is so helpful for me to understand! amazing! thx so much
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@nazmussakib5983
@nazmussakib5983 5 жыл бұрын
Thank you so much for the clear explanation! coded it after watching only 6 minutes of the video...:)
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Excellent. Keep practicing. Keep getting better. Tell me of any offers you get one day! :)
@nazmussakib5983
@nazmussakib5983 5 жыл бұрын
@@BackToBackSWE of course. I will!
@cryptojeff3993
@cryptojeff3993 3 жыл бұрын
Best Explanation for this problem!
@marksargent3209
@marksargent3209 5 жыл бұрын
The best I've seen so far.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
haha thanks
@darod6098
@darod6098 5 жыл бұрын
Keep going this good work man, you're the best. The only thing that I would love is having more videos, nothing else. (Especially about Graphs, Trees and Bit Manipulation)
@darod6098
@darod6098 5 жыл бұрын
Just to say: Your code could be better in terms of performance if parenStringInProcess would be an StringBuilder instead of an String, and then just convert to String before adding it to the list, right? Because in this way we're having problems of performance with the immutability of the String class
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
@@darod6098 More videos are coming. And yes, I'm aware of this inefficiency, if you want you can fix it up and open a PR. I'd gladly merge it in.
@darod6098
@darod6098 5 жыл бұрын
@@BackToBackSWE PR opened! :)
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
nice
@neesargmistry2071
@neesargmistry2071 3 жыл бұрын
bro, keep making me understand how you understand it because I understand it the best the way you understand it :)
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
Thank you, I will
@anuragkothare6181
@anuragkothare6181 4 жыл бұрын
Great Explanation. Crystal Clear.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks.
@ninghaohe5084
@ninghaohe5084 2 жыл бұрын
you are a legend BRO !!!
@2280281
@2280281 3 жыл бұрын
Simply Amazing!!! You made my Day
@explorewithswetha.
@explorewithswetha. 5 жыл бұрын
Very clear explanations! Thank you.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
sure
@mausami16mau
@mausami16mau 4 жыл бұрын
you made it very simple and easy to understand, thanks.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thx
@karnifazil
@karnifazil 3 жыл бұрын
Awesome explanation! So nicely explained backtracking.
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
thx
@dexterellis7973
@dexterellis7973 3 жыл бұрын
Thank you for breaking this down.
@garylai5174
@garylai5174 4 жыл бұрын
Wow man thanks so much! This explanation is beautiful :)
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@kuralamuthankathirvelan
@kuralamuthankathirvelan 5 жыл бұрын
Keep on posting videos !
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
k, prolly won't be technical though for a bit
@wh264
@wh264 3 жыл бұрын
Super helpful, really help me grok the concept better without completely giving out the answer
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
great
@nishadkumar7322
@nishadkumar7322 4 жыл бұрын
Finally, someone who did it right! Thanks @Benyam Ephrem.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@tesfayhisheteka8158
@tesfayhisheteka8158 2 жыл бұрын
I really like your videos and I can say I have learned so much from your videos, Thank you for your great videos!! Can I ask where I can find the link to the code? I couldn't find it on the description!
@sauravkumarjha2838
@sauravkumarjha2838 4 жыл бұрын
very clearly explained. thanks a lot.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@ridhisood4951
@ridhisood4951 5 жыл бұрын
I was so confused with the solution of this problem. But now finally understood the backtracked solution.. thanks for making this video..
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Nice! happy
@MostafaAliMansour
@MostafaAliMansour 5 жыл бұрын
Dude u r really awesome, keep up the great work 🤗
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
thanks, i try
@kadamdeepali2011
@kadamdeepali2011 4 жыл бұрын
Superb explaination.. Thank you so much. I was struggling to solve this problem. After looking at video . It got cleared.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@Justin-yq8hf
@Justin-yq8hf 2 жыл бұрын
Thanks for pointing out the time complexity
@ijustdey
@ijustdey Жыл бұрын
Absolutely Ingenious
The N Queens Problem using Backtracking/Recursion - Explained
14:29
Back To Back SWE
Рет қаралды 135 М.
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 25 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 72 МЛН
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 5 МЛН
Generate all Balanced Parentheses
34:03
Aditya Verma
Рет қаралды 143 М.
Berry's Paradox - An Algorithm For Truth
18:34
Up and Atom
Рет қаралды 435 М.
The LeetCode Fallacy
6:08
NeetCode
Рет қаралды 462 М.
But what are Hamming codes? The origin of error correction
20:05
3Blue1Brown
Рет қаралды 2,3 МЛН
LeetCode 22. Generate Parentheses
12:39
Nick White
Рет қаралды 81 М.
Yanlışlıkla Telefonumu Parçaladım!😱
0:18
Safak Novruz
Рет қаралды 671 М.
Проверил, как вам?
0:58
Коннор
Рет қаралды 352 М.
Сколько реально стоит ПК Величайшего?
0:37