Number of Islands | Java | LeetCode Solution 200

แชร์
ฝัง

ความคิดเห็น • 8

  • @mockmock-wv8gi
    @mockmock-wv8gi 4 หลายเดือนก่อน +1

    By far the most clear explanation I've seen thank you!!

  • @umarfarooqshaik2504
    @umarfarooqshaik2504 5 หลายเดือนก่อน +1

    Nice explanation buddy,you have explained very well 👍👍👍

  • @dhanniekristanto
    @dhanniekristanto 9 หลายเดือนก่อน

    after few similar 2D traversing case, I've finally have a better understanding of the dfs algorithm and this video helped a lot. thanks

  • @CodeCreated
    @CodeCreated 8 หลายเดือนก่อน

    excellent explaination, you deserve more followers, I have my google interview 2 days later, wish me luck fam

  • @KENTOSI
    @KENTOSI 3 หลายเดือนก่อน

    Hey thanks for the solution, but is the worst case really n^2? Seems more like it would be n^4. Imagine a large grid of all 1s. You'll immediately enter the first tile and do a dfs across all tiles (n^2). But then when you exit the function you're still needing to loop across every time even though you've already covered it.
    Am I missing something here?

  • @apyyymnmn3442
    @apyyymnmn3442 9 หลายเดือนก่อน

    awesome, thanks buddy

  • @aliciak9084
    @aliciak9084 2 ปีที่แล้ว

    very nice explanation!