No teacher is present currently who can explain this topic in easy manner amazing job
@Pepcoding4 жыл бұрын
I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem. If you like my efforts, I request a review g.page/Pepcoding/review?rc
@jerichocasey20783 жыл бұрын
InstaBlaster.
@047gauravkumartiwari53 жыл бұрын
@@Pepcoding Ye baat copy pasted message ke form mein hi kyun likhna. Kabhi normally bhi bol diya karo
@AHMED_MOCHI5 ай бұрын
After watching 15 videos regarding N Queen problem, no one was able to deliver this concept this easily as you did sir. Thank you so much !
@_Burhan_Hilal_ECE_ Жыл бұрын
Sir i swear by God i searched for this problem on youtube and watched almost all the videos but could not understand the proper working of this problem/backtracking. U made it so easy that even a layman can understand. Seriously agar yaha sai nhi samjha toh kahi aur sai b nhi samjh pavo gai. I have watched other videos of u and the unique thing i noticed about you is u do the dry run of every problem. Really appreciate ur efforts sir. U made my day sir. 🥺🥺
@mayur_madhwani033 жыл бұрын
3 mahine pehle jab pehli baar attempt ki thi ye problem laga tha kabhi solve nahi kar punga. Aaj jab ye video dekha kaafi jaldi solve ho gayi. Thank you for teaching in the best way. Belated Happy Teacher's Day sir ❤
@ShMayank Жыл бұрын
Initially when the queens were placed randomly, I was a bit confused as to why it was being done but when the condition to check for safe place was added, it made so much sense and the solution became super easy. Can't thank this channel enough, really
@rohanjaiswal643 жыл бұрын
I watched it twice and the more I watch it ,the more I understand about the working of the Euler. Amazing explanation!!
@Pepcoding3 жыл бұрын
Thankyou beta! I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem. If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@debbh2742 жыл бұрын
Man, the clarity of your explanations is mind boggling.
@ashutoshkumar40993 жыл бұрын
sir no other teacher has the guts to analyze recursive programs completely step by step and draw state space tree for it...Iam really getting to know how to approach solving recursive programs...words fell short thanking you...please keep the good work going
@Pepcoding3 жыл бұрын
Glad to know that you liked the content and thank you for appreciating. The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos. So, keep motivating, keep learning and keep loving Pepcoding😊
@secularguy________3 ай бұрын
@@Pepcoding love u sir
@MusicalLifeViB2 жыл бұрын
I had been facing problem in recursion and backtracking but I watched this playlist and now do feel confident to atleast approach the problem. Thanks for this world class explanation and analysis.
@Pepcoding2 жыл бұрын
Glad you liked it! Keep learning. And for better experience, visit nados.io, where you will get well curated content and career opportunities.
@MusicalLifeViB2 жыл бұрын
@@Pepcoding sure and thanks again!
@adityagupta22534 жыл бұрын
I was stuck in implementation of isSafe method and your tutorial helped me to understand that. Thanks a lot for the clear explanation.
@Pepcoding4 жыл бұрын
Thankyou beta, I am glad you liked it. I also hope that you are watching till end. Will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms)
@creativegiant1483 жыл бұрын
No teacher is as dedicated as him to make us understand the topic please guys subscribe the channel he is great
@Pepcoding3 жыл бұрын
Thanks buddy! Always keep supporting and loving like this.
@prakhar_kesar3 жыл бұрын
Probably the best explanation of N-Queens Ever. #Respect.
@nknidhi3213 жыл бұрын
Never thought N-Queen would be this easy.. All credits to you..🙏❤️
@Pepcoding3 жыл бұрын
Will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@adityapathak3002 жыл бұрын
Itna detail mai sb cheeze koi nhi samjhata Respect to you Sir!!
@Pepcoding2 жыл бұрын
Hope you love the explanation, for better experience and well organised content visit - nados.io
@rupinderkaur-dj8ib3 жыл бұрын
next level teaching,although ive paid for the course(gtbit program) still i watch your videos instead of attending zoom classes.
@Pepcoding3 жыл бұрын
Beta, class zrur attend kre because standalone videos itni benificial nh hoti, jitna live classes hoti h.
@deepakojha32163 жыл бұрын
hi bro can i contact you to know how is live programs can you provide me your instagram id so that i can contact you
@adityagupta3753 жыл бұрын
At 10:00 he's speaking the language of the gods 🥺🥺😍😍 amazing explanation sir
@nitin90423 жыл бұрын
Student at someother x academy learning from pepcoding thats how much good he is
@gurpreetsodi39487 ай бұрын
I watched many videos, but for understanding code this is best.
@AyushKumar-fk5lm3 жыл бұрын
Gazab explanation! Itna achha koi nahi samjha sakta ye sawal!!
@kunalvaishnav9283 Жыл бұрын
thankyou no one explained recursive tree you are the first to explain in it thankyou so much
@erkrishnapandit2 жыл бұрын
Lajaawab explanation sir ji.... Excellent job... I am your big fan sir ji....
@ashutoshtiwari47193 жыл бұрын
Still if u didn't get the problem then no one on this planet can teach you better than this ❤️
@Pepcoding3 жыл бұрын
I am glad. Keep learning. Keep supporting. Your kind words are the kind of motivation that truly help me in making more and more content. Especially, these days, not everybody is generous with motivating anybody either. It means a lot
@mdshaheerrafeeq24383 жыл бұрын
Sir I have seen so many videos but your content is out standing , the way you teach line by line is awesome 😎.
@Pepcoding3 жыл бұрын
I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem. If you like our efforts, we request a review g.page/Pepcoding/review?rc You can subscribe to our channel here kzbin.infoabout?view_as=subscriber
@sushilvarande62233 жыл бұрын
Finally understand the N-queen problem by watching a video once. Sir, you are great and thank you for your effort and great teaching.
@Pepcoding3 жыл бұрын
Thankyou beta! I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem. If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@sakshiaggarwal61993 жыл бұрын
khud se bhi dry run krke bhot acha samajh aya sir. Thank you so much !!
@paritoshdadhich29543 жыл бұрын
Sir aapne to speachless kar diya, bhot bhatareen tarike se samjhaya ab to main kisi ko bhi ye solution samjha sakta hu itna achhe se samaj aa gaya. Thanks a lot, sir. More power to you!!!!!
@Pepcoding3 жыл бұрын
Glad to know that you liked the content and thank you for appreciating. The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos. If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@paritoshdadhich29543 жыл бұрын
@@Pepcoding I would love to contribute and write about precoding and its content. Sir please give me some days to think and then will get back to you with the link of post on quora
@ashishgoswami63034 жыл бұрын
Sir, I've seen Ur video where you asked people to not call you God. But each time a watch a video of yours it's the only thing that crosses my mind this person has godlike teaching skills unparalleled by any other person . This bootcamp will blow up to be India's finest very soon. I'm just happy I got the chance to study from you 😁
@Pepcoding4 жыл бұрын
Wow, thank you
@AbhinavGupta34143 жыл бұрын
Nice one. Have been revising it from 5 years. Don't think I will need to revisit the topic ever after. :)
@Pepcoding3 жыл бұрын
Excellent! Keep learning, Keep growing and keep loving Pepcoding!😊
@akshyananda72193 жыл бұрын
Thank you Sir, Working on DS and Algo questions these days, your explanations to problem statements and codes help a lot.
@Pepcoding3 жыл бұрын
Happy to help! If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms ) Keep watching and keep loving Pepcoding😊
@vaibhavpanvalkar30253 жыл бұрын
best backtracking and N queen explanation ever.
@zeeshanalimannur5704 Жыл бұрын
it was fun understanding this problem
@anmoldogra51504 жыл бұрын
Sir is question ko seedha krnesolve Kiya toh nhi BNA pr pr thodi Der video Dekh k approach samaz as gyi..sir khud se Kaise bnaye ya time k Saath Saath problem krte aa Jayega ...bdiaya smzaya sir Aapne🔥🔥
@Pepcoding4 жыл бұрын
Thankyou beta! Keep learning and keep loving Pepcoding
@karakib2k172 жыл бұрын
Thank you from Bangladesh. Amazing video. I love your explanation and dry run system.
@HarshKumar-nh6be4 жыл бұрын
Sir fabulous teaching none of teachers was able to explain this problem....mind blowing sir..😎😎😎❤❤❤❤❤❤❤. KEEP IT UP SIR!
@Pepcoding4 жыл бұрын
glad you liked it!! keep watching !!share among you peers
@HarshKumar-nh6be4 жыл бұрын
@@Pepcoding why not? You are my best teacher😊
@RitikRaj-ze8xg3 жыл бұрын
Finally, crystal clear explanation, great work sir Ji 🔥🔥🔥🔥
@Pepcoding3 жыл бұрын
Thankyou beta! I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem. If you like our efforts, will you like to review us here - g.page/Pepcoding/review?rc
@AnjaliSingh-uq9fy3 жыл бұрын
superb explanation sir, its really helpful when u dry run the code multiple times, thank you for teaching us
@ananyaarya24654 жыл бұрын
sir sach mein aap to bhagwaan ho hum jaise baccho k liye !
@Pepcoding4 жыл бұрын
Glad you liked it!! keep watching and share among your peers
@info1.0918 ай бұрын
Very nice teaching style great sir
@yogeshedekar60783 жыл бұрын
Sir really really good explanation. I think you should write a book explaining your methods. Your methods are so unique and easy to understand.
@kasturisanyal66493 жыл бұрын
This was such a great explanation. No doubt you are the best recursion teacher. Thank you so much for this detailed explanation. you made sure that every student understand the logic ! Keep uploading such great videos:)
@Pepcoding3 жыл бұрын
Keep learning and keep motivating. For more such exciting content, don't forget to visit nados.pepcoding.com
@binodkumarsingh17053 жыл бұрын
What to say, Many thanks to Pepcoding you guys make coding simple... 😎
@ProgrammingWithProject3 жыл бұрын
Sir you are the best teacher in the world 🌍
@DivyaPrakash-bj6zk3 жыл бұрын
I will definitely crack my dream company and all credit goes to Sumeeet Sir ❤❤❤❤
@Pepcoding3 жыл бұрын
Keep it up. For better experience and well organised content visit - nados.pepcoding.com
@sarangr86243 жыл бұрын
No one can teach like you
@Pepcoding3 жыл бұрын
I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem. If you like our efforts, we request a review g.page/Pepcoding/review?rc You can subscribe to our channel here kzbin.infoabout?view_as=subscriber
@faizanhaider3953 Жыл бұрын
Sir mujhe to lagta h X academy aur bhi jo platform hai... Sb aap se parh k tahalKaa macha rahe honGai aur alag se jaa k phokat me u6al rahe hai 😂😂 BTW explanation is on Baap Level... Thanks q so much sir
@TabrezAlikhan79602 жыл бұрын
You DS and java ke King ho sir
@yuvrajsubh67232 жыл бұрын
Great explanation. Truly very helpful for me.
@nidhirani85593 жыл бұрын
One of the best explanation Sir... Mja aa gya..
@raj_kundalia2 жыл бұрын
Watched on 22 Dec, 2021 - Thanks for the video.
@Pepcoding2 жыл бұрын
Glad you liked it! Keep learning. And for better experience and well organised content visit nados.pepcoding.com
@sarangr86243 жыл бұрын
Sir keep teaching you are surely going to achieve great heights one day.
@Pepcoding3 жыл бұрын
Thank you so much for your kind blessings
@learn_with_yourself3 жыл бұрын
great man!! lot of love to your dedication
@lochan474 ай бұрын
10:30 I am just leaving the time stamp for myself, so other please ignore.
@RBNrocks11 ай бұрын
Sir thanks a lot for explaining in so much details. I think if you also explain the time complexity and space complexity of the final solution, it would be helpful.
@sakshamsrivastava62803 жыл бұрын
most beautiful video on the this topic
@harshitgoyal23823 жыл бұрын
zindgi bhr aapka gulam bnne ko tyyar hai sir....
@Pepcoding3 жыл бұрын
Hope you love the video! For better experience and well-arranged content visit- nados.pepcoding.com Don't forget to follow us on Instagram instagram.com/pepcoding/
@imajt53 жыл бұрын
thanks sumit sir...you are the best teacher
@Pepcoding3 жыл бұрын
The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos. So, keep motivating and Keep loving😊
@aashishgoyal14364 жыл бұрын
Thanks a lot for such a valuable content
@Pepcoding4 жыл бұрын
My pleasure
@abhishekkumaryadav19282 жыл бұрын
Amazing... Sir love you❤️❤️
@manpreetsinghrana7751 Жыл бұрын
G.O.A.T
@geekySRM3 жыл бұрын
BEAUTYYYYYYYYYYYYY! Sir kya explanation hai!
@Pepcoding3 жыл бұрын
wow, this cheers me up. I am glad we at pepcoding could be of help to you. Keep learning. Also, recommend us to your juniors and peers, they may also benefit.
@Techfest-p8x Жыл бұрын
JAB KISI BHI VIDEO SE SAMAJH NHI ATA TO MAI IS CHANNELE PE ATA HU , ITNA EASY BATATE HAIN KI
@NihalSingh-ld2en3 жыл бұрын
sir bhut hi accha pdate ho ap....
@Pepcoding3 жыл бұрын
Glad to know that you liked the content and thank you for appreciating. The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos. So, keep motivating, keep learning and keep loving Pepcoding😊
@abhishekranjan10942 жыл бұрын
Thank you so much sumit sir... #leetcode solution class Solution { List finalList ; public List solveNQueens(int n) { int[][] queen= new int[n][n] ; finalList=new ArrayList() ; printQueen(queen,0) ; return finalList ; } public void printQueen(int[][] queen , int row ){ if(row==queen.length){ List ans = new ArrayList() ; for(int i=0 ; i=0 ; i--, j--){ // left diagonal if(queen[i][j]==1){ return false ; } } return true ; } }
@Anand145272 жыл бұрын
Amazing explanation
@TabrezAlikhan79602 жыл бұрын
Sir yadi mare aap ka content complete kar liya to kite salary ka package lag satka he sir yah par Coching available nahi ye sir
@rahulnaraniya12223 жыл бұрын
love pepcoding!
@pratyush__agarwal3 жыл бұрын
Respect for your efforts ❤️
@Pepcoding3 жыл бұрын
Thankyou! It really means a lot😊
@vidyabhushan76552 жыл бұрын
Amazing explanation!
@deeksha65143 жыл бұрын
Super awesome explanation! Sir
@koshivsharma58763 жыл бұрын
No words to say🥇
@ayushjain53604 жыл бұрын
Awesome Explanation, Sir
@Pepcoding4 жыл бұрын
Keep watching
@mindbodyps2 жыл бұрын
Only one ⭐ in whole youtube
@Pepcoding2 жыл бұрын
Hope you love the explanation, for better experience and precisely organised content sign up on nados.io and start learning.
@amanpreetsinghsetia15243 жыл бұрын
Amazing Explanation sir !
@prachisingh5771 Жыл бұрын
well explained sir
@rithikraj18133 жыл бұрын
Row wala case optimize kr skte h set use krke aur vaise bhi set ki atmost n hi hogi aur syed aur syed iss question ko aur bhi optimize krra jaa skta h kyun ki queen knight ki chaal nii chalti to agr 2 knight attacking position mei h to to vhi queen ka position hoga to dhaai dhaai ki call lgakr bhi syed krra jaa skta h....usme bas yeh check krna pdega ki koi bhi queen ek dusre ki row aur column mei nii honi chahiye....... aacha n queens place krni pdhi h na to yeh nii hoga kahe ki yeh 2 queens ki bhi solutions de dega to agr atmost n queen huaa to yeh solution de skte ho...syed...maybe....
@ruirui73443 жыл бұрын
thanks, sir for your effort.
@loserfruit96633 жыл бұрын
Thanku ❤️❤️
@techykush71923 жыл бұрын
god level explanation sir jiiii 😍😍😍 thanku
@Pepcoding3 жыл бұрын
Thankyou beta! If you like our efforts, please upvote the comments written by the students about Pepcoding here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@adarshsaraf97022 жыл бұрын
sumeet sir is lord
@ZSHADOW182 жыл бұрын
Why is prints all possible solutions can anyone explain, i mean it should just print the first possible solution but instead the code prints all possible solutions...
@faizanali-gr8yx3 жыл бұрын
Incredible ❤️
@Pepcoding3 жыл бұрын
Glad to know that you love our video, for better experience. Visit - nados.pepcoding.com and sign up to NADOS. Don't forget to follow us on Instagram instagram.com/pepcoding/
@devanshpurwar3 жыл бұрын
maaja agya sir
@jatinkumar44104 жыл бұрын
Awesome explanation sir...
@Pepcoding4 жыл бұрын
Thanks and welcome
@utkarshsharma11852 жыл бұрын
Thanks
@ankoor3 жыл бұрын
Python code: class Board(object): def __init__(self, n): self.n = n self.board = [[0 for _ in range(n)] for _ in range(n)] def solve(self, row, result, output): if row == self.n: output.append(result[:]) return for col in range(self.n): if self.isSafeCell(row, col): self.board[row][col] = 1 result.append((row, col)) self.solve(row+1, result, output) result.pop() self.board[row][col] = 0 def nQueens(self): result = [] output = [] self.solve(0, result, output) return output def isSafeCell(self, row, col): # Vertical check for r in range(row-1, -1, -1): if self.board[r][col]: return False # Main diagonal check r = row - 1 c = col - 1 while r >= 0 and c >= 0: if self.board[r][c]: return False r -= 1 c -= 1 # Minor diagonal check r = row - 1 c = col + 1 while r >= 0 and c < self.n: if self.board[r][c]: return False r -= 1 c += 1 return True def display(self): for row in self.board: print(row) b = Board(4) output = b.nQueens() print(output)
@aparna83384 жыл бұрын
Very good explanation sir
@Pepcoding4 жыл бұрын
I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem. If you like my efforts, I request a review g.page/Pepcoding/review?rc
@ishan79753 жыл бұрын
Great explanation.
@Pepcoding3 жыл бұрын
Glad you liked it
@shubhamkhuntia24122 жыл бұрын
lelo sir anumati, aap h rkhiye unko. aaajse Anumati aapki
@freelancedeveloper25914 жыл бұрын
if you can tell the time complexity that will be very much benificial for us
@Pepcoding4 жыл бұрын
Beta, I regret to inform you that, I won't be able to answer/solve the personal doubts of each and every student over here. For clearing your doubts, you can join our community on telegram - t.me/pepcoding.
@freelancedeveloper25914 жыл бұрын
@@Pepcoding i will definitely join it
@sudhanshusharma91234 жыл бұрын
Thanks a lot sir for such a great explanation, I performed a dry run in this question for 3 times. This is question has been another of my nightmares for past years and thank you for clarifying it so well.
@Pepcoding4 жыл бұрын
You are most welcome
@AshishGusain173 жыл бұрын
thanks for the video
@Pepcoding3 жыл бұрын
Glad to know, that you love the explanation, for better experience and precisely arranged videos. Visit - nados.pepcoding.com and sign up to NADOS. Don't forget to follow us on Instagram instagram.com/pepcoding/
@vihaansingla50884 жыл бұрын
Thank you sir i like your videos
@Pepcoding4 жыл бұрын
So nice of you
@abhishek59664 жыл бұрын
sir please provide us a video of graph colouring and practice of some questions on it .
@Pepcoding4 жыл бұрын
Yes, this will be covered in level2
@abhishek59664 жыл бұрын
sir i will put all my suggested topics here which i will find hard to understand and which others have also not covered very well ..as it will help us .If you feel my suggestions are good then please also make videos on those topics . currently---FLUERY'S ALGORITHM and other important algos and methods to detect euler circuit
@Pepcoding4 жыл бұрын
@@abhishek5966 beta kra dunga. level2 ke baad level3 mei jo kahoge use treat kar dunga.
@girikgarg8 Жыл бұрын
Done!
@SCRIPTSAG4 жыл бұрын
Sit time complexity sir eski n*n se bhi jata hogi kya
@Pepcoding4 жыл бұрын
n raise to power n beta
@adityasrivastava79563 жыл бұрын
great!!
@adityasrivastava79563 жыл бұрын
sure sir!
@sanketsinha98164 жыл бұрын
Sir question ka solution dekhna pr rha ha but ek bar dekhne k bad me clear ho jata .. khud se kaise bnaye sir kya time k sath problem solve krte aa jaega ? Btw Love your teaching Style sir
@Pepcoding4 жыл бұрын
beta ye to time ke sath he hota hai. jab 1000 question solve kar loge to thought process ban chuka hoga
@arihantjain58693 жыл бұрын
Sir jab hamara matrix size 3 ki hogi jab queen (0,0) and (1,2) pe place bhi to ho sakti hai. Please resolve my query.
@ravidagar_3 жыл бұрын
Best sir,
@Pepcoding3 жыл бұрын
I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem. If you like our efforts, we request a review g.page/Pepcoding/review?rc You can subscribe to our channel here kzbin.infoabout?view_as=subscriber
@0_0-0_0.3 жыл бұрын
Sir which software you use for drawing. It is good for us visualise or draw problem and algorithms before coding Please tell me🙏🏻🙏🏻