Just don't miss consistency bro one day you will get break and this will be one stop for placement preparation
@aasifali91392 жыл бұрын
Thanks fraz bhaiya for these awesome lectures. I don't have enough words to thank you for the efforts you have put in your videos. Now i am feeling confident in Recursion, earlier i used to fear from recursion. Thanks again for removing my fear.
@jayantmishra68972 жыл бұрын
today i have completed this whole series now i am feeling confident in recursion and waiting for the dynamic programming series .thank you sir
@Lucifer-xt7un2 жыл бұрын
Experiencing the pure knowledge with unmatchable consistency ❤️❤️
@CodeandColors222 жыл бұрын
Yes bhiyaa apki consistency or apki mhnt dikhti hai fr chahe LL ho yah recursion help or understanding clear hoti hi h i follow you ajay ki placement se you are very hardworking ❤🥰
@LearnYardYT2 жыл бұрын
Thank you Jitender
@mohdumar69902 жыл бұрын
Your explanation is very awesome. No need to remember code 😄. Create code by deriving the problem
@prashantsingh36182 жыл бұрын
Thank you for being consistent with videos bhaiya!
@jasmin_bheda2 жыл бұрын
I don't know if you gonna see this or not but faraz bhai thank you so so so much man, I don't know how to explain this but I was so much stuck in Recursion and literally gave up on this topic but I found somewhere on twitter lately about your Recursion playlist so thought about giving it a try & man It was one of the best decision I had ever made. Thank you so so much brother U don't even know how many people's lives your work is changing God Bless You Brother May You always be Successful ❤❤(also bhaiya if if possible start a new series as well It will be really really helpful ... : ) )
@nitinkale49852 жыл бұрын
I will be watching this video tomorrow, I am already feeling confident when it comes to recursion. I think I am elder than you, but I will still call you fraz bhaiyya. Thank you so much bhaiyya for this playlist....
@gauravkumar30362 жыл бұрын
Consistency++ It's 2:00 am now, salute to your hardwork🌟
@sonimuskan52342 жыл бұрын
though i have solved these questions already, still there is something new to learn from u each day
@LearnYardYT2 жыл бұрын
Thanks Soni
@it_08amanagarwal352 жыл бұрын
Excellent Lecture bro hoping for many more good lectures❤❤❤❤❤❤❤❤❤❤❤❤
@divyanshsagar2 жыл бұрын
Recursion playlist done!
@codeDaily-4u2 жыл бұрын
Great explanation bhaiya. Waited for your DSA Series so long. I personally likes your style of teaching and recommended my batchmates to follow your series. Feels demotivated many times but your consistency motivates me. Thank you Bhaiya Stay happy hamesha.
@LearnYardYT2 жыл бұрын
Thank you so much for this
@souvikmukherjee84192 жыл бұрын
A work of art by an artist........ fantastic video bhaiya👌bahut achhe seh samaj aya
@arghya_08022 жыл бұрын
Summary: 1. We need to place N Queens in N*N chessboard. That means we can only place only one Queen in every row. We cannot skip any row else we cannot solve it. We need to return all possible solutions by placing queens in different positions throughout the chessboard. 2. Queens can cancel each other - in same row , in same column, in left diagonal(both up and down) and in right diagonal(up and down). However, as we are placing 1 Queen in every row so we don't need to check for rows. Also, as we are filling our chessboard in up to down manner , we don't need to check for down Left Diagonal and Down Right Diagonal respectively, 3. Instead of checking everytime in the column or Upper Left or Right Diagonal respectively, we can use 3 separate arrays/vectors of length n to check if placing a queen at (i,j) in the board is safe or not. The mapping goes as follows: a) for columns: a simple array where cols[i] = 1 if Queen is placed else cols[i] = 0 is sufficient. b) for Upper Right Diagonal: we map using (row + col) with index of UpperRight vector, that is, in our Upper Right Diagonal array UpperLeft[currentRow + currentCol] = 1 if Queen is present in the Upper Right Diagonal of (currentRow, currentCol) else it will be 0. c) for Upper Left Diagonal: we map(row - col + n - 1) with index of UpperLeft vector. If Queen is present UpperLeft[i] = 1 else it will e 0. 4. Now our task is pretty easy. If our row == n, it means we have successfully placed all N-Queens in the chessboard, so we save our current configuration of the board in our vector and and return back. 5. Otherwise, we will iterate over all the columns from 0 till n-1 using a for loop and see where we can place a Queen in currentRow or i-th row. 6. For check we will declare a isSafe() function which takes currentRow , currentCol, cols[] , UpperLeft[] and UpperRight[] vectors. Or we can simply iterate over all the columns of currentRow , and check the diagonals as well. Whichever suits us better we can use it. 7. Lastly, whenever isSafe() returns true, we will place the Queen at that location and ask recursion to place rest of the Queens starting from next Row thatis, currentRow + 1. 8. At the end, we return our and[][] from the given function, which contains all possible N-Queens solutions. Time Complexity: O(N!) [ As Fraz sir has explained, at first row we are having N choices, in the next row, we will be having (N-1) choices and in the next to next row, we will be having (N-2) choices at max ... which roughly calculates to N! ways. So Time Complexity is O(N!) Space Complexity: O(N) [ Only recursive stack space] & O(N^2) [if we consider our vector and containing all valid configurations] {The Height of recursive tree will only be equal to N(number of Queens) but if we consider all the our and[][] vector containing all valid configurations then our Space Complexity is O(N^2). Generally, we always consider the Auxiallary Stack Space or any other data structures we use by our own but it's always better to explain all the complexities to the Interviewer !! P.S.: The use of cols[] , UpperLeft[] and UpperRight[] just blew my mind up. Very few Ytbers will actually explain both logics. Thank you sir for making such awesome videos!!!
@divyanshsagar2 жыл бұрын
Ha Bhaiya kaafi help mil rahi hai lectures se bas kuch lectures me yeh to samaj aa jaata hai solution kya hai par line by line code asli me kaise work kar raha hai usme dikkat aa jaati hai isliye agar aap dry run bhi karwa do to wo bhi problem solve ho jaaegi. PS: Your content is 🔥🔥
@LearnYardYT2 жыл бұрын
Okay bro karenge ye bhi try, till then you try to do the Dry run with pen and paper
@divyanshsagar2 жыл бұрын
@@LearnYardYT Ok bhaiya ✌️
@priyanshjha69522 жыл бұрын
Completed, no days missed 21/21 days.
@CodeandColors222 жыл бұрын
Salute your hardwork bhiyaa 🥰❤
@it_08amanagarwal352 жыл бұрын
Bro Main thing about ur whole Lectures of recursion is way of teaching each concept in a simple way so that everyone can understand and one who nows the question will also get a new concept for question
@LearnYardYT2 жыл бұрын
Thanks Aman
@it_08amanagarwal352 жыл бұрын
@@LearnYardYT Bro can you take n knights problem
@aadarshpandey27932 жыл бұрын
Got everything about the Queen Problem Thanks sir
@LearnYardYT2 жыл бұрын
♥️
@himanshmishra53982 жыл бұрын
Great bhaiya this consistency motivates me a lot
@paawansingal7882 жыл бұрын
These recursion videos are very helpful. Thankyou so much for all your hard work.
@LearnYardYT2 жыл бұрын
Thanks ☺️
@mdsufyankhan10292 жыл бұрын
As usual cool lectures.. Never gonna bored on your voice Keep making ,and take this ❤️
@rushilranjan142 жыл бұрын
Thanks for making these videos definitely getting a hang on recursion
@LearnYardYT2 жыл бұрын
Thanks ☺️
@HarshitSharma-si4wl2 жыл бұрын
this series is beneficial for me, I am daily excited about new video
@LearnYardYT2 жыл бұрын
Amazing 🔥🤩
@ShivamKumar-kx3rx2 жыл бұрын
loving the videos bhaiya loving them
@LearnYardYT2 жыл бұрын
Thanks bro
@it_08amanagarwal352 жыл бұрын
Lots of love and looking forward to learning new questions ❤❤❤❤❤❤❤❤❤❤❤
@LearnYardYT2 жыл бұрын
Thanks ☺️
@sujalgupta61002 жыл бұрын
Completed whole series.
@DPCODE722 жыл бұрын
#include Using namespace std; Int main(){ While(1){ Printf(" Fraz bhaiya consistency & dedication "); } Return 0; } Ur dedication & hard work motivate me all the time to keep moving!! Thnaks alot for everything ur!! #FrazbhaiyaConsistency
@HarshRaj-kp7gk2 жыл бұрын
Sir , you videos are amazing 🙏🏾🙏🏾 And one suggestion you donot think about views in video in long term your video going to rock on ytube Sir , ek questions ke sheet bna digiye ga verbal ability , aptitude and resonaning ka 🙏🏾🙏🏾( for placement) including ytube video link also
@DeepakKumar-jg1xk2 жыл бұрын
Present Sir , waiting for this today 🥰
@ratnasanjay2 жыл бұрын
Thankyou bhaiya for this nice session
@spanningtree58692 жыл бұрын
Thanku bhaiya 🥰🥰😊❤
@priyanshusingh89712 жыл бұрын
yo lectures top notch
@sonicboom66352 жыл бұрын
Very well explained 😊
@sanketbhagat12222 жыл бұрын
Thankyou so much bhaiya for your content.
@DeepakKumar-jg1xk2 жыл бұрын
Waiting for next video bhaiya , loving this series bhaiya 🥰
@GM-pk4li2 жыл бұрын
it's better than coding ninjas courses
@BurhanAijaz2 жыл бұрын
Day 21 kya hi likhu kyuki kal dekha nahi, but kuch dino pehle leetcode pai kia tha maine same question,so i don't regret anything but u still uploaded the video at about 2am , that's the consistency 🔥
@BurhanAijaz2 жыл бұрын
came from telegram as u asked for it, i have been watching ur videos regularly but i am not able to solve different questions from different platforms
@jameschennaicho8602 жыл бұрын
Gr8 explaining 🙏❤️
@Abhishek-fo3fc2 жыл бұрын
Done understood ❤️✅
@simantsaurav23502 жыл бұрын
Misson passed, respect ++ 😎
@bhuneshmeravi84112 жыл бұрын
this lecture is really difficult than previeus one😀
@RitikSINGH-ts4cx2 жыл бұрын
At 29.47 u have made a recursion tree and here you have explained the time complexity as n! Which seems fine but I have one doubt if I shall made a recursion tree of string permutations then it should be also like this like n+(n*n-1)+(n*n-1*n-2)+................+n-1!+n! Then there n! Should be the time complexity but u said there n*n! Kindly answer this.it shall be a great help @Lead Coding by FRAZ
@brahmkaransingh88042 жыл бұрын
here we have for first n options to place ,for second n-1, for third n-2 and so on which is same to permutations ques thus n! factor is same in TC . But an extra n was there because at every stage we were having a string of length n but here we are just putting 0 and 1 . Hope this solves your doubt. Questions are most welcome
@alokbind33052 жыл бұрын
Well explained✨🙌
@GrowWithSaksham2 жыл бұрын
Which software do you use for teaching? Please tell me🙏🏻
@mohdsaadalikhan72092 жыл бұрын
space complexity should be : N (recursion stack space) + N^2 (chessBoard) + N! (valid configurations stored in ans vector as there can be N! possible configurations) ???????????????
@Gauravkumar-kc6xh2 жыл бұрын
Great
@divyabaghel50762 жыл бұрын
thank you for amazing lectures
@LearnYardYT2 жыл бұрын
Thank you
@mohammedsaqib12502 жыл бұрын
Bhai ek baar doubt session rakh ke recursion ki time complexity aur space complexity explain kardo bahuth dikkat ho rahi hai calculate karne me kuch bhi samj nai aaraha hai time and space complexity calculate karne me
@mohdumar69902 жыл бұрын
Good and easy explanation
@emtiazahmed53332 жыл бұрын
Mid night class😁😁 thank u bhaiya😝
@092mohammadkudratullah62 жыл бұрын
Very hard work 👌
@surgeonofdeath81992 жыл бұрын
hey bhaiya a little off topic question but plzz do help me so i was doing question leetcode (my daily practice) and i countered a problem which i wasn't able to solve but when i saw the solution i was able to understand it easily this is not the first time this thing has happened to me so my question is what to do in this scenario really confused should i just keep going like this..?
@divyakeshri73772 жыл бұрын
Well explained 💯🔥
@LearnYardYT2 жыл бұрын
Thank you 🙌
@brobasticdoooooooom44672 жыл бұрын
All the lectures are really good and am able to understand and build a strong base. Since there is less time left for placement now, could you also provide us how we can cover more topics soon?
@LearnYardYT2 жыл бұрын
Yes I am trying but thoda sa time ka issue hai due to full time job
@brobasticdoooooooom44672 жыл бұрын
@@LearnYardYT yes understandable bhaiya, and it’s such a great thing that you are doing for us simultaneously with your work, Truly an inspiration. Thanks a lot!
@brobasticdoooooooom44672 жыл бұрын
@@LearnYardYT not videos but could you provide a roadmap or resources where we can start learning others topics side by side as well?
@yeswanthh50682 жыл бұрын
💚💚💚
@abhay.19262 жыл бұрын
Present sir🙌🙌
@its_Akash_2 жыл бұрын
Consistency++ sir
@budhadityachatterjee62702 жыл бұрын
Thank you !
@mohdumar69902 жыл бұрын
Consistency++
@Wanna_be_012 жыл бұрын
Thanks #Fraz_Bhaiya for this video ❤️🔥 Mera Ek Problem ho rha hai pta hi nhi chal rha hai ki kaun sa question me kaun sa DS use karun. Ya question ke phle pura DS Revision karun. Can anyone tell me what should I do?
@LearnYardYT2 жыл бұрын
Start with this series fir uske baad aage karna
@Wanna_be_012 жыл бұрын
@@LearnYardYT Haan Bhaiya!! ye to main starting se kaar rha hoon lekin Leet Code ke Problems nhi ho rhe hai mere se 😥 Phir depressed 🤦♂️ bhi ho jata hoon ki mere se kyo nhi ho rhe.🤕
@doremondis28912 жыл бұрын
When is next topic coming ?
@abhishekc35562 жыл бұрын
🔥🔥
@samqureshi94152 жыл бұрын
Dsa toh kar lege per offcampus interview Lena muskil hai .
@LearnYardYT2 жыл бұрын
Why bro
@samqureshi94152 жыл бұрын
@@LearnYardYT I did bsc cs or jab mai job search karne laga toh koi bhi 15k se 20k ki salary dera sirf yea lakhs wali salary toh sirf sapna ban kar reh gaya hai.
@Mevinaygupta2 жыл бұрын
Sorry but I am not able to be consistent .I don’t know c neither java but I am working javaScript which language should I go with and I am working in industry for around 2year and I build stuff in service based company but really wana switch to products based company .so for this complicated mess I shared here but I really wana admit my issue . If any one have any suggestions for me .please share me here
@LearnYardYT2 жыл бұрын
I will put hava script codes in description
@vivekpaanchal2 жыл бұрын
Bhaiya leetcode ke questions kyu nhi karate 🥲🤧
@Shorts_Music_742 жыл бұрын
🔥❤️❤️🔥
@ChandanKumar-ph8dl2 жыл бұрын
Consistency break ho gyi this 10 k baad , abhi 16 per huun.... Soon will catch you.