Backtracking : Pahele istamal kare fir vishavas kare 😂👍
@navya99143 жыл бұрын
Hahaha really funny😂😂
@johnwick-m4m3 жыл бұрын
LOL
@jatingupta18663 жыл бұрын
its simply means undo
@aryanrodrigo75743 жыл бұрын
i guess Im asking randomly but does someone know a method to get back into an instagram account..? I stupidly lost the password. I would love any tricks you can give me
@skylerelian24483 жыл бұрын
@Aryan Rodrigo instablaster :)
@a.....90533 жыл бұрын
He is only person who had work very hard for indian youth let support him together pls share this video so more youth can utilise sources
@udaykadam54553 жыл бұрын
"only" !!!?
@a.....90533 жыл бұрын
@@udaykadam5455 physics wallah is also best
@AnkitKumar-nx2tq3 жыл бұрын
@@a.....9053yes..but aman's content is much more diverse
@AvikNayak_3 жыл бұрын
He is not the only one.
@indraxios3 жыл бұрын
If you search c++ this is the first thing you'll see No need to share
@jayeshyadav073 жыл бұрын
1:47 👍👍👍 urvi dii op👍👍👍11:32. Watch last 17:50 to 18:27 . You will definitely smile. 👍 Thanks 😊 Aman bhaiya.
@dipeshsaili44683 жыл бұрын
pgle pyaar hogya kya tereko?
@7_ajinkya3 жыл бұрын
Wow! It means "leap year" code has a simple backtracking logic! Cool!! I didn't even knew I was using backtracking for so long😂😂😂
@pradnyeshmate1317 Жыл бұрын
i don't get what you are saying which leap year code
@singh_lki3 жыл бұрын
02:03 Jab neha hi akeli bachi to constraints change kar liye honge rahul ne 😂
@VC-dm7jp3 жыл бұрын
Finally learnt how to pass a 2 array without mentioning the number of columns!! And a really good video to understand the concept of backtracking.
@jaypratap38883 жыл бұрын
What happens if there are multiple paths through which rat can reach the destination. I guess it will take the first path and neglect all other paths , Correct me if I am wrong.
@sourabhchoudhary72893 жыл бұрын
Backtracking -- Sab try kro fir sahi chuno!
@neerajkrishnan85743 жыл бұрын
In a nutshell ghadi detergent
@sourabhchoudhary72893 жыл бұрын
@@neerajkrishnan8574 😂
@kumarakash52193 жыл бұрын
@@neerajkrishnan8574 airtel sahi example hoga
@sushmapandey71453 жыл бұрын
Pehle istemaal karein phir vishwaas krein
@bboynishant5255 Жыл бұрын
Nhi nhi pehle try kro aur Lage ki red flags hai toh agey padho he mat, wapas bhaago
@joyboy10883 жыл бұрын
Damn, they really are putting out some good stuff !!! I had to refer to gfg and other videos to study these topics for competitive coding, gonna watch them again in case I missed something
@Callme-DS3 жыл бұрын
didi aap na pura code likhne ke baad ek baar fir se line by line samjha diya kro kyuki ek saath jaldi samajh me aa jata hai
@talhashahid36772 жыл бұрын
Nice lacture today I understand complete rat in maza problem without any doubt ☺
@anjulatakashyap69743 жыл бұрын
Mam your voice is so sweet, and also your teaching style is awsome😍, thank you so much for provide this type of content in free of cost .
@aakankshanidhi49893 жыл бұрын
yeah her voice is magical
@muhammadsaifullah30782 жыл бұрын
this video really helps me, before that I have watched 3 videos on backtracking This really helps
@yashsimra60903 жыл бұрын
please mam make a seperate video on dynamic memory allocation in detail with example
@kunalgautam83123 жыл бұрын
I recently started DSA for placement and chose this series. I was thinking the problem will be hard, etc. before watching the video. But you explained it very clearly and easily. Thank you!
@l_am_Ahashan Жыл бұрын
Way of explaining Osam ma'am
@amlansaikia6523 жыл бұрын
This question was really interesting.
@rajaryanbiswas5486Ай бұрын
Best explanation ever didi
@AbhishekSingh-eo6bi3 жыл бұрын
Me at 11:32 -: Ye Choti Choti khusi har koi nhi deta mere payare ...... In all her video understanding & andar wali khusi ( samjh rahe ho 😜 ) is 💯🔥🤟🏻
@subhashkumar-rl4nfАй бұрын
all the content on this channel is correct and ,and meant especilly for placement do shrare the video and encourage her to made lot more video likes this .
@playpoint57923 жыл бұрын
Art : Aman Dhattarwal Artist : Aman Dhattarwal's team Such a good course wasn't possible without DiDi.
@vibhanshusharma59743 жыл бұрын
kabhi samaj nhi aya yeh topic lekin aaj poora clear ho gya thanxs aap sbko best of luck
@success_hub933 жыл бұрын
I don't know why but i am addicted to her voice... Never feel bored 😍
@aakankshanidhi49893 жыл бұрын
same here
@tanishafre44923 жыл бұрын
Ye ladka ketchup se judge kar raha he bhaiiii... I want this level of confidence!!!
@Saurabh-gg9lv3 жыл бұрын
question was really amazing
@rahulPandey-xt2ww Жыл бұрын
bhtt achha feel huaa soch k
@rutvikrana5123 жыл бұрын
Important Points :- - Same Problem Can Be Solved By Dynamic Programming Because Rat can move only right and down. Read Dynamic Programming From Books If You Are New To It. - Common Syntax Of Any Backtraking code :- bool recur(){ if(){} else(){} ..........Terminating Conditions if( we achieved goal ){ return true; } for( Check every directions ){ old_var = new_var; .........change single point if( recur() ){ return true; } .............check if we are right about this point. new_var = old_var; ..............no this point failed reverse changes and loop continue. } return false; ...........if we cant find any direction to go return false; } - If You Understand Fine and Feel Confident then check Sudoku Solving Problem which is also Backtraking problem. HAPPY LEARNING :)
@kunal97483 жыл бұрын
hey, can you please share some book name related to algorithms
@rutvikrana5123 жыл бұрын
@@kunal9748 ... Groking’s algorithm is best for basics, then read from online sources, GFG, totorialpoint, hacker earth, etc.
@akulathreye85633 жыл бұрын
yes , how do i make it so that i can configure the rat to go both up as well as down ? should i just add another condition where ........ if(isSafe(x,y-1)) return true ; and put the sol array = 1 inside the if statement ? similarly inside all the true statements i will update the value of the solution ?
@rutvikrana5123 жыл бұрын
@@akulathreye8563 ... yes, use matrix array to Check if Rat has visited a spot or not, if yes you can’t go there if no go there, all possible directions you have to check in loop and in each loop make Recursion. It’s same problem as sudoku solving, but we just have to stop when we find our destination/exit point. We can find shortest path to destination also by not returning true if we find destination, just update minimum distance whenever we get to destination. But if you are going in all direction, then you can’t use dynamic programming. You must use Recursion
@akulathreye85633 жыл бұрын
@@rutvikrana512 Also how come she has not deallocated the memory at the end of the code ? using "delete"?
@learnwithanuj94662 жыл бұрын
This is really great 👍👍
@mjustboring3 жыл бұрын
theres a catch here we should also use delete operater before ending of program... to neglect the issue of memory leak...
@ShivaKumar-qq8qm Жыл бұрын
concept cleared in such a good manner waah!
@saikiran23562 жыл бұрын
Really helped me for leet code word search
@saptorshibairagya970 Жыл бұрын
Areh wah ❤️👌❤️
@csea_37_shayoribhowmick53 Жыл бұрын
Thank you so much ❤
@jivantoshniwal22613 жыл бұрын
Beat explanation
@harsh95582 жыл бұрын
This is really some great quality content!
@harshitrajshorts00013 жыл бұрын
Interviewer be like: paise kitne loge decide Kar le 🤣🤣
@lowercaseguy35783 жыл бұрын
Ur code is beautiful.
@neelshah7893 жыл бұрын
Instead of passing whole 2d array as an argument we can just declare it globally
@akankshaverma58043 жыл бұрын
Thankyou so much backtracking really scared me but you made it possible ❤️❤️
@shivamkumar-qp1jm3 жыл бұрын
Use BFS or DFS it will help to solve bactracking
@ETEAMaster152022 жыл бұрын
well done upna ma'am
@sayanraha772 жыл бұрын
very nice explanation out here loved it
@aryanagarwal20713 жыл бұрын
Pls deallocate the memory at the end of program, it is a good practice.
@kunalgulati33582 жыл бұрын
Nice video, thanks
@nishantyadav74613 жыл бұрын
Dii op - merko bhi pasnad nhi tatao wale You qre best ❤️
@suvamgupta29143 жыл бұрын
Mast explanation tha, just loved it and Thank You so much for making these videos ❤️
@bosesj3 жыл бұрын
1. I think the rat ll go to down and right respectively when increasing 'x' and 'y',, not the other way cuz 'x' denotes the row and 'y' column in 2D array, it its represented as arr[x][y] = {..{..}, {..}..} and, lets add two more direction >>> 2. And the rat may have to go up and left too if needed. BUt don't be so hasty cuz just adding another two calls like 1.if(ratinMaze(arr, x, y-1, n, solArr))//left{...} 2.if(ratinMaze(arr, x-1, y, n, solArr))//up {...} in the function will introduce us with a terrible bug, which ll cause an infinity loop at some point (try to think about it, u ll see when). The only solution is what we do in real life, keeping track of the way we came along so that we don't fell in a 'blind loop' (like in movies, when hero keeps visiting same point 5 6 times before he finally realised that he's lost(but the program wont #lol)). So we need a ifVisited function for that,, and voila! we are ready for any maze with that simple function. the COde >>> bool isVisited(int **solArr, int x, int y) { if(solArr[x][y] == 1)return true; return false; } bool ratinMaze(int **arr, int x, int y, int n, int **solArr) { if(isSafe(arr, x, y, n) && !isVisited(solArr, x, y)) { ........ if(ratinMaze(arr, x, y-1, n, solArr))//left { return true; } if(ratinMaze(arr, x-1, y, n, solArr))//up { return true; } ..... }
@easycodingwithsumit2 жыл бұрын
Thankyou so much mam really a very good explaination.
@raidsraids36473 жыл бұрын
thank you so much ,respect
@hsingh-133 жыл бұрын
Now, we have a chance to be the 1st Commentor 😂😂😂😂
@hsingh-133 жыл бұрын
But I m late 😭 😂
@sahilsawal3 жыл бұрын
Awesome Ma'am :) 🔥😇👍👌🙏👏✌☺👋😀
@ranjitkoragoankar3 жыл бұрын
Thank You So Much
@mtr29363 жыл бұрын
This is the best explanation ever ..... thanku concept cleared
@johnhammond36052 жыл бұрын
Need more detail on int** ...what is dynamic memory in array.... I don't recall this thing being taught in this series
@anurajsingh81373 жыл бұрын
Waiting Bhaiya...Awsome series
@neetupandey73133 жыл бұрын
Majjjee hi aaa gaye lecture ko sunke toh!!! Thank you bhaiya didi and whole team!!!🕺🏽🕺🏽🕺🏽🕺🏽🕺🏽❤️❤️❤️
@rudra_sanyal16793 жыл бұрын
great explanation
@ramgopalbhajans39822 жыл бұрын
Rahul is very lucky guy.
@bibigulotepbergenova38143 жыл бұрын
thank you very much!!
@nitishsingh34703 жыл бұрын
Amazing video very nice explanation
@aswinbarath3 жыл бұрын
🔥🔥🔥Verithanam🔥🔥🔥
@himanshuprem6003 жыл бұрын
thank you.......
@saikeerthanchiluka4027 Жыл бұрын
Thank you mam
@theBeingralph3 жыл бұрын
Aman bhaiya ki team is savoir in true sense ❤️
@akshunair33673 жыл бұрын
Thank you guys!
@Utkrshrma3 жыл бұрын
rahul stud bhi hai or lucky bhi :')
@arnikchakraborty15533 жыл бұрын
rahul medical ka student hain pakka
@aadityasharma68553 жыл бұрын
@@arnikchakraborty1553 I got hurt.
@bhavuktomar79353 жыл бұрын
didi ek baar dry run karke dikha diya karo plzzzzz.
@zarakib10 ай бұрын
Thanks
@aneesaziz36113 жыл бұрын
thanks bhaiya.
@PAGADLAHEMANTHItVelTechChennai2 жыл бұрын
please upload every video with English subtitles
@shivangisahay33013 жыл бұрын
This is amazing , urvi!
@mjustboring3 жыл бұрын
Didi aman bhaiya ki toh sab taareef karte hi hai kuch shitty peoples 🤬 ko chhod kar... but aapne kitna mast samajhaya... hats off... 🎩🎩... isse acha koi nhi samjha sakta... (free of cost especially)...
@kankanachowdhury33533 жыл бұрын
The explanation is 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
@minhazrahman48283 жыл бұрын
Love from Bangladesh 😊
@adityagupta97193 жыл бұрын
very nice video
@swisswick57158 ай бұрын
aman bhaiya ka chuha backtracking krte hue chala hi gaya
@happybro74768 ай бұрын
🤣🤣🤣🤣
@pratikshyabehera45463 жыл бұрын
ratinmaze.cpp: In function 'bool ratinMaze(int**, int, int, int, int**)': ratinmaze.cpp:17:18: error: invalid conversion from 'int' to 'int**' [-fpermissive] 17 | solArr = 1; | ^ | | | int How to solve this?
@knowledgehub15833 жыл бұрын
Thank u thanku bhaiyaaa so much
@aryanrana90253 жыл бұрын
Why we wrote x
@job_freak3 жыл бұрын
Superb
@gauravsinghrathore90003 жыл бұрын
One of the best video on Backtracking
@a.s.graphics83052 жыл бұрын
I was scared of backtracking but this video has cleared the concept of backtracking to me , thanks for making these amazing videos.
@Callme-DS3 жыл бұрын
didi concept to samjh aa jata hai per jaise aap implement kr rhe ho vaisa implementation apne aap se mai nhi kr pata
@yashpriyadeepkatta88233 жыл бұрын
7:10 backtracking function for rat maze
@madhavaggarwal1733 жыл бұрын
microsoft wali didi, please topic ko achhe se samjhao jese isme most of the students ko dynamic memory allocation kai baare mai nhi pata tha so please its my request to take action on this point.. and After that, your content is very helpful for all of us and very relative examples you take to explain which is amazing. Thank you so much to give this level of content.
@madhavaggarwal1733 жыл бұрын
and yes this code is not working in my laptop i don't know why and even i checked 5 times for correction and everything is ok.. i share my code which is not working.please if someone try this then correct me through comment.. #include using namespace std; bool issafe(int **arr,int x,int y,int n){ if(xn; int**arr=new int*[n]; for(int i=0;i
@shivamsingh203 жыл бұрын
Backtracking explained very nicely..... this course is highly recommended .....
@anishchauhan26473 жыл бұрын
Aman bhaiya you are great you have done a lot for us thanks 😁😁❣️❣️
@jiteshmeher60133 жыл бұрын
Thanks bhaiya 😀
@siddhantmaharana3936 Жыл бұрын
This code seems to fail when we reach x==n-1 OR y==n-1, before reaching the last corner. The code gives a null output for this input {1,0,1,1,1},{1,0,1,0,1},{1,0,1,0,1},{1,0,1,0,1},{1,1,1,0,1} which is an N kind of shape. What is the changes we will have to make in order to work this out? Thank you.
@abhinavpj17293 жыл бұрын
I wrote the code myself😁,I used just 65 lines.. I used looping method😊😊
@jatinmaheriya23433 жыл бұрын
Bro can you send your code? because I wrote code but at the last row all the elements are printed zeros!
@prabhakumari58833 жыл бұрын
@@jatinmaheriya2343 #include using namespace std; bool isSafe(int** arr,int x,int y,int n){ if(xn; int **arr=new int*[n]; for(int i=0;i
@talhamumtaz26782 жыл бұрын
Thanks a lot di, i don't know i am calling you di as an urdu speaker hahahah, your method of teaching is very very good.
@aakashdabas94903 жыл бұрын
Damm! Lucky Rahul !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :/ Ider tho dhur dhur tak khaet khali h !
@ayushagarwal0163 жыл бұрын
Rahul bhai OP .
@Ramesh-ps7yn3 жыл бұрын
Thank u bhaiya 😊
@biswojitamishra82493 жыл бұрын
I think she not bhaiya she is behen
@propeller88252 жыл бұрын
Legends already knew rahul and Neha would end up together in the end
@vasutiwari41873 жыл бұрын
question : Rat in a Maze programming : Rat Race hotel: TRIVAGO
@anantsinghal31803 жыл бұрын
Sir web development course kab aayega yeh to batado.....🙏🏻🙏🏻
@JamilaMurtazaKagalwala3 жыл бұрын
after 3-4 days !! given update on telegram grp
@AmanRaj-ux8cw3 жыл бұрын
Go to compile coding Chanel.. Wha mil jayega ya fir free class start ho rhye hai.. G meet par
@nitishsingh34703 жыл бұрын
Yes when web dev course will come?
@harshulagarwal17553 жыл бұрын
@@nitishsingh3470 3-4 days baad. I think before than 10 December toh aa hee jaayega
@jalsacentre10403 жыл бұрын
I couldn't solve one variation Where total no of parths asked and it is allowed to push boxes aside to vacate path Like . . . B . . . B . . B . => . . . B . . . . . . . . Or push Down
@MVCS_Theja3 жыл бұрын
But there is a problem what if there is a solution where the rat has to go up,and if we can add a statement to go up, the if the x=0 we can't check the above becz ther is nothing above
@jenil1513 жыл бұрын
Rahul and neha reminds me that it's aman bhaiya's channel 😂