Yahoo India Web Search

Search results

  1. Number of Islands - Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically.

    • Solution

      Number of Islands - Level up your coding skills and quickly...

    • Submissions

      Number of Islands - Level up your coding skills and quickly...

  2. Learn how to solve the problem of finding the number of islands in a 2D grid using BFS or DFS algorithms. See the code implementations in C++, Java, and Python.

  3. Learn how to use Depth-First Search (DFS) to count the number of islands in a grid of '1's and '0's. See the problem description, flowchart, intuition, code, and complexity analysis.

  4. Sep 7, 2023 · How to use Depth-First Search. Recall that our objective is to identify the amount of island chains present. The idea behind the Depth-First Search algorithm is that for each cell visited, we...

  5. Learn how to use Union-Find algorithm to count the number of islands after adding land to a 2D grid. See the problem description, intuition, solution approach, example walkthrough and code implementation.

  6. Jun 16, 2023 · Learn how to solve the LeetCode problem 200. Number of Islands using a simple intuitive real-world approach. See visualizations and code examples of how to traverse the grid and conquer the land on each island.

  7. Learn how to solve the interview question of finding the number of islands on a matrix or grid using DFS or Disjoint Set algorithms. Watch the video lecture with code examples and explanation by Techdose.

    • 13 min
    • 178.8K
    • Techdose
  1. People also search for