Rat in a Maze Problem - I | Recursion | GFG POTD | C++ | Java | Code Kar Lo

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

КОМЕНТАРІ • 7

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

    Easy approach, Thank you bhaiyya

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

    i was trying to use string builder...bahut issues ho rahe they... we had to delete the last character before each recursive call
    btw if we had to optimize it further then dp use karna hota ? if yes then how?
    and target TC 3^(N^2) , jabki hoga 4^ hi..

    • @code_kar_lo
      @code_kar_lo  Місяць тому +1

      Actually we do not have to tell total number of paths. Yha par agr ek sub problem dubara occur hoti hai to hume pura path uska leke answer me append karna hoga direct return nhi kar skte vha se to is liye dp use nhi kar rhe isme. Time complexity shyad gfg valo ne galat likhi hui hai.

  • @VivekKumar-gl5vo
    @VivekKumar-gl5vo Місяць тому

    ek video n-queen problem (gfg) par bana do bhai

  • @HewlettBelle-x6d
    @HewlettBelle-x6d 9 днів тому

    Walker Christopher Robinson Betty White Laura