2 Basics of Backtracking

Поділитися
Вставка
  • Опубліковано 12 лис 2023
  • In this video, we will learn about the basics of backtracking and how it is different from other recursion variants.
    Music I use: www.bensound.com
    License code: Q1IAPI4RNZSUDBQA

КОМЕНТАРІ • 149

  • @jishanansari7611
    @jishanansari7611 7 місяців тому +96

    King returned to take back his Throne!!!

  • @mohit6215
    @mohit6215 7 місяців тому +47

    This man is born to make history in coding ❤❤❤

  • @nitinsinghal182
    @nitinsinghal182 7 місяців тому +55

    I learned DP and recursion from you 1 year back. Now working at Microsoft 😄

  • @Ishita-jr9pz
    @Ishita-jr9pz 7 місяців тому +45

    Please make a series on graph after completing backtracking🙏

  • @guptagaurav916
    @guptagaurav916 7 місяців тому +15

    Great to see you back! 2years ago I started with dsa from your channel and today I’m working as a developer at Walmart. Thank you Aditya. :)

  • @ayushsharma4087
    @ayushsharma4087 6 місяців тому +8

    Bro is teaching pass by reference and pass by value meanwhile me who codes in java 😅 . Welcome back DP king 👑

  • @rishabhahuja7413
    @rishabhahuja7413 7 місяців тому +4

    Great video, highly appreciate your return. Your expertise in Graphs, Trees, and Backtracking is invaluable. While Trees might come naturally to you, it's challenging for beginners like us. Your teaching approach encourages us to elevate our thinking. Please cover Trees and Graphs after addressing Backtracking. Your contribution would greatly benefit the community. Thanks!

  • @sunnyvlogs__
    @sunnyvlogs__ 7 місяців тому +5

    Aditya Verma , you are Legend, Bhai itna sahi explanation kahi nahi mila , sab ek hi style mein padhatey sab. , Mein yehi sochta tha , kya yeh log boltey rehtey backtrack karna , recursion toh khud backtrack hota.
    [ CONTROLLED RECURSION + PASS BY REFERENCE ] 🔥🔥

  • @priyankverma7434
    @priyankverma7434 5 місяців тому +1

    Just start the playlist and you are done, listen and understand everything. Good stuff brother.

  • @srinathpandey1314
    @srinathpandey1314 7 місяців тому +2

    Hi Aditya, much pleased to have you back, your playlists helped very much in cracking the placement.

  • @nkgautam6161
    @nkgautam6161 20 днів тому +1

    Bhai tagde ho yrr tum , wahi 3 years pehle wala hi tareeka h, mast padhate ho ekdum, god bless you bro🙌🙌

  • @puneetsheokand238
    @puneetsheokand238 7 місяців тому +2

    Mast bhai, tumne jo dp and general dsa problem solving me interest banaya na maja aa gya, ab sare oa clear ho jate hai aasani se to kaafi acha lagta hai, thanks 😊🤗

  • @abhishekkapoor692
    @abhishekkapoor692 3 місяці тому +4

    I learned DP recursion from you and now I am working at Nutanix, Thank you Bhai!!!❤

    • @Raju-cj9ox
      @Raju-cj9ox 2 місяці тому

      please help me brO

  • @rajarshimisra1525
    @rajarshimisra1525 7 місяців тому

    Awesome explanation. Btw, will it please be possible to increase the frequency of uploading the videos?

  • @sauravdhar1696
    @sauravdhar1696 7 місяців тому +1

    Thanks for this series Aditya bhaiyya,
    When can we expect this series to get completed?

  • @sagestudy
    @sagestudy 7 місяців тому +2

    Tiger Zinda Hai. 🔥🔥🔥
    Thankyou Very Much for this video 🙏🏻

  • @TheNishant30
    @TheNishant30 7 місяців тому +5

    There are two important primers that tell you whether backtracking can be applied to a problem or not. The first one is, can the complete solution to the problem be built by extending a partial solution one valid candidate at a time or not (considering possible decisions to be made for an element of an array, move in one direction in a grid out of all possible directions, concatenate a char of string.etc). The second one is, do we need to restore the visited status of a node to unvisited after visiting it once or not. If the answer to the first question is yes, move to the second question. if the answer to the second question is yes, backtracking will work. if it's no, the question is probably a dfs based question. Also, if your solution doesn't contain a function f(x) that takes in a partial solution x and tells you whether x can be extended into a complete solution or not, then it's recursive brute force and not backtracking. There's is thin line since backtracking is just optimized brute force.

    • @vanshsudhirbhaipatel8685
      @vanshsudhirbhaipatel8685 4 місяці тому

      Can you rewrite this in simple short sentences please. I think you shared someting important but the comment is too complex to understand.

  • @shubham.ethical
    @shubham.ethical 7 місяців тому +2

    Finally 🎉, Welcome Back Bro

  • @nonamejustpain4492
    @nonamejustpain4492 7 місяців тому

    Dekho.....ye zinda hai (bohot late kr diya aane me aditya bhaiya....wanted to study graphs from you but ab to placements bhi start ho gaye hai humare college me...also, wanted to thank you for something....I remember aapne MCM ke intro (2 years back) me bataya tha ki flipkart MCM based ques puchti hai....aur 3 din pehle mere flipkart OA me MCM ka ques aa gaya and I did it in the first try...all thanks to you

  • @naveedwaddo8817
    @naveedwaddo8817 7 місяців тому +2

    Most underrated or unrecognised channel in whole youtube as compare to bhayya and didi wala channel's.

  • @diptamoymitra7486
    @diptamoymitra7486 7 місяців тому +6

    Sir, please please continue youtube ❤ please sir need a graph playlist

  • @shantaramkokateit
    @shantaramkokateit 7 місяців тому

    Good to see you again 🎉

  • @InderjitSingh-sh9ve
    @InderjitSingh-sh9ve 7 місяців тому

    Finally Legend is back❤❤

  • @ashishxsoni
    @ashishxsoni 7 місяців тому

    The most awaited sir

  • @Chakree45
    @Chakree45 7 місяців тому

    Thanks for ur return bro❤ and could you please show the code using ide...

  • @AmitSharma-rk1mg
    @AmitSharma-rk1mg 7 місяців тому

    @Aditya Verma, can you please tell me what device do you use to teach? is it an ipad?

  • @akshatshah6413
    @akshatshah6413 5 місяців тому

    The king returned with a bang

  • @deep14054
    @deep14054 7 місяців тому

    legend is back

  • @prashantrajaji9550
    @prashantrajaji9550 7 місяців тому

    legend is back!

  • @suyash4605
    @suyash4605 7 місяців тому

    Legend is back

  • @MrRamesh940
    @MrRamesh940 7 місяців тому

    you are a great teacher.

  • @amitgupta2890
    @amitgupta2890 4 місяці тому

    Pass by reference is what i doscovered by facing problems a lot.
    I think sometime we need our states computed to be persistent.

  • @usaamaizm
    @usaamaizm 7 місяців тому

    Love to see you again

  • @103himajapoluri6
    @103himajapoluri6 7 місяців тому

    how to change in the same string if i am using java language use stringbuffer or builder?

  • @adpranav6445
    @adpranav6445 7 місяців тому +2

    If you are here, it means you know how to prepare. Relax, work hard everyone and will get placed!

  • @divyanshmishra5121
    @divyanshmishra5121 7 місяців тому +2

    Hello Bhaiya. You've said many a times that you would make a video on your flipkart interview experience telling about all the questions that were asked in different rounds. Please make video on that as well.

  • @knowledgedoctor3849
    @knowledgedoctor3849 5 місяців тому

    Bhai Mujhe ML ata he Likin DSA itna nehi, 1 Sal se try mar raha hoon.
    Bohot channel follow kiya likin bhai tum sach me Guru Ka Guru Ho..
    Milte he khabhi bro ❣️

  • @rushikesh_chaudhari
    @rushikesh_chaudhari 7 місяців тому

    Welcome Back Sirrr!!🤩

  • @srj8dmusic699
    @srj8dmusic699 7 місяців тому +1

    Thank you ❤

  • @himanshujha7919
    @himanshujha7919 25 днів тому

    very nice explained....❤❤❤

  • @EhsanIrshad
    @EhsanIrshad 7 місяців тому

    Welcome back bro...

  • @Track_Hustle
    @Track_Hustle 7 місяців тому

    wooo woo woo you are back ....😊😊

  • @pankajgaikwad7164
    @pankajgaikwad7164 6 місяців тому

    Videos are nice but would we get notes and codes? We are not able to pay on patreon due to some rbi regulations. Is there other way?

  • @PK-xv4bg
    @PK-xv4bg 2 місяці тому +2

    such a humorous video, 😂😂

  • @raghavendraraghav8531
    @raghavendraraghav8531 7 місяців тому

    Best explanation❤

  • @harshalparkhe5950
    @harshalparkhe5950 3 місяці тому

    Please make a series on graph as well.. bro❤🙏

  • @pranabpaul6317
    @pranabpaul6317 4 місяці тому

    I am planning to start dynamic programming, i already did recursion playlist but everywhere it is mentioned to do backtracking also before touching dp. Can i do that?

  • @RohitSingh-em2pm
    @RohitSingh-em2pm 6 місяців тому

    Pleas make more series on trees and graphs also

  • @tusharmusician
    @tusharmusician 7 місяців тому

    Happy Diwali Aaditya Brother ❤

  • @user-iy6or7ci4s
    @user-iy6or7ci4s 7 місяців тому

    Me to pehli baar visit kar rha huun by that click bait vedio but I'm gonna follow you man. your content is understandable 😂

  • @Kajaldev1200
    @Kajaldev1200 7 місяців тому +1

    I love your video sir

  • @ashishxsoni
    @ashishxsoni 7 місяців тому

    Sir you are awesome 👍🏻👍🏻👍🏻👍🏻👍🏻

  • @kuldeepkushwaha9351
    @kuldeepkushwaha9351 7 місяців тому +1

    Array always are by reference , so we need backtracking to undo the change in array.

  • @Prateek_Mantry
    @Prateek_Mantry 2 місяці тому +1

    thank you.

  • @anantparashar1601
    @anantparashar1601 7 місяців тому +25

    I left DSA after getting a Job
    but now He is back ….
    ab dobara start karne ka mann kar raha hai ❤❤
    The GOD of DP❤❤

  • @sumitprakash130
    @sumitprakash130 7 місяців тому

    Please take out more videos.I am waiting

  • @superc91codm38
    @superc91codm38 7 місяців тому

    king is back!!!!!

  • @arjunc1482
    @arjunc1482 7 місяців тому +4

    Missing those good old pen spining🥲😆

  • @pannagagargain738
    @pannagagargain738 7 місяців тому

    King is back

  • @M.m554
    @M.m554 7 місяців тому +1

    Sir plz take new problems which are being asked in interview also along with standard problems...

  • @amitsarahpal6797
    @amitsarahpal6797 7 місяців тому

    Welcome back

  • @HarshSharma-ff3ox
    @HarshSharma-ff3ox 7 місяців тому

    Welcome Back

  • @deepnarayanbhagat9126
    @deepnarayanbhagat9126 7 місяців тому

    If java is always pass by value, what happens in it??? everytime it copies the value and perform operation on newer one?????

  • @ChiruBillion
    @ChiruBillion 7 місяців тому

    Bhai apki prediction kya about chatgpt on jobs of programmers??
    IK u cant make a video on it, but plz make a reply to this comment

  • @RohanMiskin
    @RohanMiskin Місяць тому

    bro which book(s)/website(s) do you refer to learn dsa?

  • @mllife7921
    @mllife7921 7 місяців тому

    Can you share your complete notes? from these videos

  • @user-xv4op2iz1b
    @user-xv4op2iz1b 7 місяців тому

    please make video on median of two sorted array please please please...

  • @ibrahimshaikh3642
    @ibrahimshaikh3642 7 місяців тому

    Hero is back

  • @user-kz5rm6hv7w
    @user-kz5rm6hv7w 7 місяців тому

    Thankes

  • @codeguy21
    @codeguy21 7 місяців тому +2

    bhaiya plz include these problems
    Knight Tour
    Sudoku
    Remove Invalid Parentheses
    Word Break Problem using Backtracking
    Print all Palindromic Partitions of a String
    Find Shortest Safe Route in a Path with Landmines
    Partition of Set into K Subsets with Equal Sum
    Backtracking set-7 Hamiltonian cycle
    tug-of-war
    Maximum Possible Number by doing at most K swaps
    Backtracking set-8 solving crypt arithmetic puzzles
    Find paths from corner cell to middle cell in maze
    Arithmetic Expressions

  • @passionatefortech
    @passionatefortech 2 місяці тому

    sundar likhna hoga :D:D
    the only channel i watch for dsa

  • @akashprajapati9097
    @akashprajapati9097 7 місяців тому +1

    Bhaiya ek doubt tha , wo jo controlled recursion me aap North aur East ko useless bta rhe , wo to tbhi useless hoga jb possible moves 4 hai , agar moves 100 ho toh tb toh East aur North me ja skte hai , and that will lead to a new path . Correct if I'm wrong .
    Following you since 1st year .
    Thanks for these videos.

  • @vaibhavsingh7959
    @vaibhavsingh7959 7 місяців тому +2

    Graph series after this please

  • @ashishxsoni
    @ashishxsoni 7 місяців тому

    Legend

  • @RajGupta-cu9hi
    @RajGupta-cu9hi 5 місяців тому

    What a confident!

  • @chisomedoka401
    @chisomedoka401 7 місяців тому

    is there a way to get this in English

  • @MR_TANMAY_YT007
    @MR_TANMAY_YT007 7 місяців тому

    Welcome vaiya ❤

  • @atulkumarjain6911
    @atulkumarjain6911 7 місяців тому

    Bhai ka gala thoda baitha hua hai, Welcome Back❤

  • @pinkysinghala
    @pinkysinghala 7 місяців тому +2

    🎉plz sliding window complete krdo

  • @tarahemaliya1982
    @tarahemaliya1982 2 місяці тому

    Make video series on graph and file handling in c

  • @mayankshakya9200
    @mayankshakya9200 7 місяців тому +2

    Print LCS ka qn karke batao usse acchi understanding banegi

  • @abhijeetbasfore6816
    @abhijeetbasfore6816 7 місяців тому

    Nice

  • @bollywoodboxoffice7017
    @bollywoodboxoffice7017 5 місяців тому

    bhai jaldi upload karde puri series please

  • @Anonymousssss368
    @Anonymousssss368 7 місяців тому +1

    Bhai please daily vedio upload krnai ka try kro

  • @parvahuja7618
    @parvahuja7618 Місяць тому

    sir next time when you make a comeback please complete the stack and dp series

  • @codecreateriitp4751
    @codecreateriitp4751 7 місяців тому

    bhaiya aap great ho graph bhi padha do esake bad fir jaha jana h aapako chale jana

  • @mohit6215
    @mohit6215 7 місяців тому +1

    Please explain rat in a maze problem I don't know the working of backtracking in it

    • @TheAdityaVerma
      @TheAdityaVerma  7 місяців тому +3

      Yes I will cover it in this playlist

    • @mohit6215
      @mohit6215 7 місяців тому

      Thankss ❤

  • @akashjadhav411
    @akashjadhav411 6 місяців тому

    You said when we use call by reference then only it is backtracking so if someone learning backtracking in Java or Python programming languages how they implement it. We can't use call by reference in both the languages.

    • @arifmohammad8111
      @arifmohammad8111 4 місяці тому

      In Java, when dealing with objects, the reference to the object is passed by value. When implementing backtracking, use objects to represent the state and pass them as parameters. Changes to the object's state within the function affect the original object due to the passed reference value.

  • @TwoTeaTee
    @TwoTeaTee 7 місяців тому

  • @nipu8406
    @nipu8406 2 місяці тому

    Sir aap graph bhi pdha degiy plz

  • @Ishita-jr9pz
    @Ishita-jr9pz 7 місяців тому +2

    Aditya if you have made notes of DSA then please upload them only if you don't have enough time to make yt videos. Your way of teaching DSA concepts is excellent.❤💯💯

  • @engineervlogsz
    @engineervlogsz 7 місяців тому

    Array + graph +linkedlist

  • @pd-oh3yy
    @pd-oh3yy 7 місяців тому +1

    Bhaiya backtracking ke baad graph padha dena

  • @ayushman_sr
    @ayushman_sr 6 місяців тому

    add rotating pen animation in corner your videos, since you have moved to stylus.

  • @respicio2990
    @respicio2990 6 місяців тому

    Voice change kaise ho gayi teri ?

  • @anushakandagal1727
    @anushakandagal1727 2 місяці тому

    " Subscribe if you want a girlfriend" ?? Par mein toh ladki hun 😂.. Thanks for coming back Aditya !🙌

  • @asabutterfield3622
    @asabutterfield3622 7 місяців тому

    You say backtrack mean pass by reference then why you say, In gfg problem if I pass value then it's will work 100%

  • @harshitanand8216
    @harshitanand8216 6 місяців тому

    Your voice got changed than before.

  • @vineshkumar6886
    @vineshkumar6886 7 місяців тому +1

    Feedback: Bhiya piease mic ki quality thoda improve krr lo

  • @virajkakade3746
    @virajkakade3746 4 місяці тому +1

    Dev Manus🙏🙏