Island Perimeter | 3 Approaches | Google | Leetcode 463 | codestorywithMIK

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

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

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

    For some reason the comments are not visible in this video. I have raised this to RUclips. Hope they fix this asap.
    Thank you for understanding ❤️🙏❤️

  • @rajeshkumar-ws5ku
    @rajeshkumar-ws5ku 2 месяца назад +2

    I solved this problem my self same as you solved this problem.

  • @wearevacationuncoverers
    @wearevacationuncoverers 7 месяцев назад +9

    king of dsa. you have the power to make a problem look EASY

  • @meetz_0166
    @meetz_0166 7 месяцев назад +5

    just 2 min watching into approach 3 i coded it without a delay and worked like a charm. made a isSafe function to check if cell is safe or not if its not safe increment count else check if that cell is 0 just 2 check and you are done with question.
    thanks for your teaching

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

    Wonderful explanation, Top notch for beginners.

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

    bas starting ka 5 minutes me hi I understood everything and coded on my own. thanks a lot

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

    Thanks sir i watched 10 minutes of your video and then code it on my own and it got accepted sir.

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

    nice explain

  • @gui-codes
    @gui-codes 7 месяцев назад

    It was like a Medium level problem to me. But after your explanation I coded it myself. Good learning experience for a beginner like me. thanks a lot

  • @neerajchopra2758
    @neerajchopra2758 7 месяцев назад +6

    sir aap Amazon, Microsoft ya google join kyu ni karte ?
    you are next level in coding and your voice and explanation 🔥

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

      There is a reason behind this.
      I will soon share this in my Journey Video which I will soon upload on my channel ❤️🙏

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

      @@codestorywithMIK 50K special video

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

    i salute sir what a good explainatoin !! thank uu so much sir

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

    I thought o fth e3rd appraoch first , but just wanted to see how you have explained the bfs solution so I came to watch the video. Loved it!

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

    You make it so easy with your explanation, tysm man

  • @Rajan-xv9cz
    @Rajan-xv9cz 7 месяцев назад +1

    done with 1st approch... thank uuu

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

    Congratulations for 42K Subscribers! ❤

  • @EB-ot8uu
    @EB-ot8uu 7 месяцев назад

    you make things super easy

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

    Bhaiya grid questions ki bhi playlist bna do

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

    more power to u

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

    Congratulations for 42k 🎊 🎉

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

    Good explanation 👏 👍

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

    Also explain leetcode contests solutions and keep up the good work👌

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

    thank you so much brother

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

    Keep growing! ❤

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

    POTD DONE [18.4.24]✅✅

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

    Thanks a lot bhaiya ❤❤ & Congrats for 42k subs 🥳

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

    Congrats mik for 42K 🎉

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

    Hi 😊

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

    I think , this problem is similar to a word search problem in backtracking.

  • @layathal7460
    @layathal7460 4 месяца назад

    Anybody knowing , in which all questions sir used DIRECTION VECTOR concept? It will be helpful if someone replied....

  • @uditkumar-mu6pn
    @uditkumar-mu6pn 7 месяцев назад

    please make a video on leetcode 1202 question number

  • @avnish-wf8rv
    @avnish-wf8rv 7 месяцев назад

    @Everyone if question like this is asked in an interview do we need to solve by only dfs or interviewer will ask us to solve by both dfs, bfs?

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

    ❤❤

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

    Comment to check if comments are visible!

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

    4th approach.
    public int islandPerimeter(int[][]grid){
    int m=grid.length,n=grid[0].length,ans=0;
    for(int i=0;i

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

    Thanks ❤❤❤❤❤

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

    Aaj blue hai paani paani

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

    Video chapters kaha hai Mazhar sirji.

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

      Added video timelines. Hope that helps

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

      @@codestorywithMIK Thank you sir😇

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

    Hi

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

    Test comment

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

    sie
    please aap bhi global variable use krke mt kiya kro, many of us learn from ur solutions

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

      Sure thing. I will take care of this ❤️

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

    What is wrong in my code, it fails on 1st testcase only
    class Solution {
    public:
    int m,n;
    int per;
    void dfs(int i,int j,vector& grid){
    int cnt=0;
    if(i=m ||j=n||grid[i][j]==0){
    per++;
    return;
    }
    if(grid[i][j]==-1){
    return;
    }
    grid[i][j]=-1;
    dfs(i-1,j,grid);
    dfs(i+1,j,grid);
    dfs(i,j-1,grid);
    dfs(i,j+1,grid);

    }
    int islandPerimeter(vector& grid) {
    m=grid.size();
    n=grid[0].size();
    per=0;
    for(int i=0;i

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

    Bro yeh 3rd approach kaam nhi kr rha hai pls check:
    int islandPerimeter(vector& grid) {
    int r = size(grid);
    int c = size(grid[0]);
    for(int i=0; i= 0 && grid[i][j-1] == 0)
    {
    ans++;
    }
    }

    else
    continue;
    }
    }
    return ans;
    }
    };

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

      I think there should be || instead of && in conditions
      if(i+1 < r && grid[i+1][j] == 0)