Number of Islands | DFS | BFS | Same as Island Perimeter | Leetcode 200 | codestorywithMIK

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 30

  • @DevOpskagyaan
    @DevOpskagyaan 7 месяцев назад +10

    🐐 salute to consistency 🙌

  • @thor1626
    @thor1626 7 месяцев назад +1

    You know you understand the logic when you get the intuition at 6:30 Thanks for this amazing tutorial, also the way you explained yesterday's question "Island Perimeter" made this question a cake walk.

  • @VineetDixit
    @VineetDixit 7 месяцев назад +4

    kudos to your hardwork sir

  • @detaincoder
    @detaincoder 7 месяцев назад +2

    amazing sir
    dheere dheere apke solution dheke problem ko approach karna sikh rha hu
    keep it up sir 🙂

  • @thor1626
    @thor1626 7 месяцев назад +3

    Mik is just reducing his watch time by teaching so brilliantly lol.

  • @varunsen2802
    @varunsen2802 7 месяцев назад +1

    could solve this on my own, thanks to you

  • @Shubham-kk
    @Shubham-kk 3 месяца назад

    bhai duniya ke saare question upload krdo nn, it becomes really painful jab koi question smjh na aa rha ho and then there's no solution from your side.

  • @gauravbanerjee2898
    @gauravbanerjee2898 7 месяцев назад +1

    Thanks a lot bhaiya ❤❤

  • @tutuimam3381
    @tutuimam3381 7 месяцев назад +1

    Amazing explanation

  • @manimanohar_001
    @manimanohar_001 7 месяцев назад +1

    Bro I solved the problem "number of distinct Islands" on my own.
    is there any reward ??😊😎🙏

  • @molyoxide8358
    @molyoxide8358 7 месяцев назад

    Bro there's a question named "Number of Distinct Islands" in both LC & GFG.
    But in LC it's a premium question.

    • @codestorywithMIK
      @codestorywithMIK  7 месяцев назад +1

      Yes it’s premium but available on gfg and lintcode
      github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Graph/Number%20of%20Distinct%20Islands

  • @Zaheer__zk40
    @Zaheer__zk40 7 месяцев назад +1

    Understand the intution

  • @aizad786iqbal
    @aizad786iqbal 7 месяцев назад

    iske liye koi simplest approach nahi hai , like the iterative approach?

    • @codestorywithMIK
      @codestorywithMIK  7 месяцев назад +1

      Actually an island in the gird can be of any form which can only be explored using BFS or DFS .
      An iterative solution will not be possible.

  • @molyoxide8358
    @molyoxide8358 7 месяцев назад

    Bro there's no question like "Find Unique Islands". Pls give the question link

    • @codestorywithMIK
      @codestorywithMIK  7 месяцев назад +1

      github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Graph/Number%20of%20Distinct%20Islands

  • @Dezy_Kri
    @Dezy_Kri 7 месяцев назад +1

  • @dayashankarlakhotia4943
    @dayashankarlakhotia4943 7 месяцев назад +1

    public int numIslands(char[][]grid){
    int cnt=0;
    for(int i=0;i

  • @Ramgangakumar
    @Ramgangakumar 2 месяца назад +1

    In every video you say "Medium Mark h bilkul easy h" and in case hard problem "hard Mark h but medium h"😂😂

  • @singhshek58
    @singhshek58 7 месяцев назад

    Bhaiya "Find unique island" ka question kha per hai , leetcode me to nhi dikh rha hai.

    • @codestorywithMIK
      @codestorywithMIK  7 месяцев назад +2

      Actually it’s a Premium problem, but available on gfg and lintcode
      github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Graph/Number%20of%20Distinct%20Islands

    • @singhshek58
      @singhshek58 7 месяцев назад

      Theek hai bhaiya 👍

  • @sumedhaghosh1265
    @sumedhaghosh1265 7 месяцев назад +1

    Anyone with the hw question link?

    • @codestorywithMIK
      @codestorywithMIK  7 месяцев назад +3

      Actually it’s a Premium problem, but available on gfg and leetcode.
      I have posted Qn also in the link below -
      github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Graph/Number%20of%20Distinct%20Islands

    • @sumedhaghosh1265
      @sumedhaghosh1265 7 месяцев назад +1

      @@codestorywithMIK oh okay sir thank you so much! 🙇‍♀️❤

  • @jatakchatterjee1459
    @jatakchatterjee1459 7 месяцев назад

    Find the unique islands link??

    • @codestorywithMIK
      @codestorywithMIK  7 месяцев назад +2

      I think I have not created video for that.
      But you can find the code in my github repo.
      But there is a video for another similar problem -
      Number of Closed Islands | Story to code | Google | Leetcode 1254 | codestorywithMIK
      ruclips.net/video/dMn6NPk9nPw/видео.html

    • @codestorywithMIK
      @codestorywithMIK  7 месяцев назад +3

      Actually it’s a Premium problem, but available on gfg and lintcode
      github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Graph/Number%20of%20Distinct%20Islands