Tower Of Hanoi | Simple Story | Story To Code | Recursion Concepts And Questions | Video 7

Поділитися
Вставка
  • Опубліковано 3 жов 2024

КОМЕНТАРІ • 22

  • @amitagrawal4660
    @amitagrawal4660 2 дні тому +1

    Very nicely explained

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

    GRATEST of all time explaination 🔥🔥🔥

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

    bhaiya thanks a lot mai apki recursion playlist ki hi wait kar raha tha for learning backtracking and dp .

  • @Divyansh-n3h
    @Divyansh-n3h 2 місяці тому +1

    greatest explanation truly story to code!

  • @gaurimandot5788
    @gaurimandot5788 6 місяців тому +4

    Best explanation as always.☺

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

    Bro im in train journey still want to listen your videos.

  • @exampleankitworld4921
    @exampleankitworld4921 11 днів тому +1

    bhaiya dry run nahi karaye aap samjha nahi sahi se mtlb main problem solve kaise ho ga wo to samjh gaye pr ho kaise raha hai wo nahi samjh aaya

  • @DivyamGupta-e8q
    @DivyamGupta-e8q 5 днів тому

    bhiya plzz explain why we won't print the moving of disk from (from rod) to (aux rod) in the above of statement .
    int count=solve(n-1,from,aux,to)

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

    Crazy!!

  • @yashlekhwani9363
    @yashlekhwani9363 5 місяців тому +2

    i have doubt... while explaining second condition you said Nth road . dont you mean Nth disk we move from (From rod) to (To Rod) ?

  • @abcd76820
    @abcd76820 6 місяців тому +1

    i have mplemented in java :
    class Hanoi {
    public long toh(int N, int from, int to, int aux) {
    long count=0;
    if(N==0)
    {return count;}
    if(N==1)
    {
    System.out.println("move disk "+ N +" from rod " + from +" to rod " + to);
    return 1;
    }
    count = toh(N-1,from,aux,to);
    System.out.println("move disk "+ N +" from rod " + from +" to rod " + to);
    count++;
    count += toh(N-1,aux,to,from);
    return count;
    }
    }
    but why this gives error if i declare long count globally ? means inside solution class but outside toh function ?

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

    16:13 😂😂😂😂😂😂

  • @ankitgupta2745
    @ankitgupta2745 8 місяців тому

    Sir can u please make the video on this Problem 'Minimize the Maximum of Two Arrays' bcoz it is quite difficult to understand and most of company ask this question.

    • @ru45098
      @ru45098 8 місяців тому

      @shreyash_2025 2513 lc

  • @TejasVaidya-uq5sd
    @TejasVaidya-uq5sd 5 місяців тому +1

    sir which software do you use to draw the diagram and write.

  • @oqant0424
    @oqant0424 6 місяців тому +1

    done [19.3.24] ✅✅