G-13 BFS+DFS Problems II Shortest Bridge II Leetcode 934 II C++/Java

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

КОМЕНТАРІ • 19

  • @DIVYANSHMNIT
    @DIVYANSHMNIT Рік тому +1

    Amazing sir, the way you approach any problem is just the ideal way to approach in any interview. Great effort sir. Hats off!🤯

  • @sharan7504
    @sharan7504 Рік тому +2

    Great Explanation, liked your energy the whole time.

    • @kenadave
      @kenadave Рік тому

      Is it? this much is not required

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

    as we are doing step ++ after each level how does it ensure to get the shortest number of 0's required ?

  • @KunalJaiswal-og7nf
    @KunalJaiswal-og7nf Рік тому

    That was some content I wanted to watch - this was preety cool concept that how cna u use multi source bfs along with dfs. Damn i watched it before my internship interviews!!!

  • @sahilanand30
    @sahilanand30 Рік тому +2

    Superb explanation

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

    What an amazing explanation , thank youu

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

      Glad it helped you ❤️🫂

  • @sanchitagarwal9651
    @sanchitagarwal9651 Рік тому

    great way of building intuition

  • @tanishkumar6682
    @tanishkumar6682 Рік тому

    Can we conclude that the shortest bridge will always be from the cell which lies on the boundary of the island not from the inside cell(i.e the cell which does not lie on the boundary).

  • @prathamrajbhattnit-allahab4108

    great explanation

  • @sundarbsr4275
    @sundarbsr4275 Рік тому

    Nice Explanation Bro😊

  • @lonen3rd
    @lonen3rd Рік тому

    How do we calculate shortest bridge if grid has >2 islands?

  • @VijayTamada
    @VijayTamada Рік тому

    Cool !!!

  • @kunalkheeva
    @kunalkheeva Рік тому

    thanks

  • @MrKB_SSJ2
    @MrKB_SSJ2 Рік тому

    🔥

  • @adityamishra9496
    @adityamishra9496 Рік тому

    why we not use dfs instead of bfs.

    • @princepranav9021
      @princepranav9021 Рік тому

      you have to find the island in min steps..but when you apply dfs it might not give you the min no of steps..but multisource bfs gurantees shortest min steps

  • @AmarjeetKumar-en1gk
    @AmarjeetKumar-en1gk Рік тому

    Put ur face as channel logo. Thanks me later...