You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 2024-07 |[Leetcode-695. Max Area Of Island](https://leetcode.com/problems/max-area-of-island/description/)|[c++](./leetcode/695.max-area-of-island.cpp), [python3](./leetcode/695.max-area-of-island.py)| Depth-First Search | O\(MN\)| O\(MN\)| - |
| 2024-07 |[Leetcode-695. Max Area Of Island](https://leetcode.com/problems/max-area-of-island/description/)|[c++](./leetcode/695.max-area-of-island.cpp), [python3](./leetcode/695.max-area-of-island.py)| Union Find | O\(MN\)| O\(MN\)| - |
682
684
| 2024-07 |[Leetcode-547. Number Of Provinces](https://leetcode.com/problems/number-of-provinces/description/)|[c++](./leetcode/547.number-of-provinces.cpp), [python3](./leetcode/547.number-of-provinces.py)| Union Find | O\(N^2\)| O\(N\)| - |
| 2024-08 |[Leetcode-1631. Path With Minimum Effort](https://leetcode.com/problems/path-with-minimum-effort/description/)|[c++](./leetcode/1631.path-with-minimum-effort.cpp), [python3](./leetcode/1631.path-with-minimum-effort.py)| Union Find | O\(NMlogNM\)| O\(NM\)| - |
691
+
| 2024-09 |[Leetcode-200. Number Of Islands](https://leetcode.com/problems/number-of-islands/description/)|[c++](./leetcode/200.number-of-islands.cpp), [python3](./leetcode/200.number-of-islands.py)| Union Find | O\(MN\)| O\(MN\)| - |
| 2023-09 |[Leetcode-163. Missing Ranges](https://leetcode.com/problems/missing-ranges/description/)|[c++](./leetcode/163.missing-ranges.cpp), [python3](./leetcode/163.missing-ranges.py)| Other |\-|\-| - |
772
775
| 2023-09 |[Leetcode-170. Two Sum Iii Data Structure Design](https://leetcode.com/problems/two-sum-iii-data-structure-design/description/)|[c++](./leetcode/170.two-sum-iii-data-structure-design.cpp), [python3](./leetcode/170.two-sum-iii-data-structure-design.py)| Other |\-|\-| - |
773
776
| 2023-09 |[Leetcode-175. Combine Two Tables](https://leetcode.com/problems/combine-two-tables/description/)|[sql](./leetcode/175.combine-two-tables.sql)| Other |\-|\-| - |
774
-
| 2023-09 |[Leetcode-200. Number Of Islands](https://leetcode.com/problems/number-of-islands/description/)|[c++](./leetcode/200.number-of-islands.cpp), [python3](./leetcode/200.number-of-islands.py)| Other |\-|\-| - |
775
777
| 2023-09 |[Leetcode-203. Remove Linked List Elements](https://leetcode.com/problems/remove-linked-list-elements/description/)|[python3](./leetcode/203.remove-linked-list-elements.py)| Other |\-|\-| - |
776
778
| 2023-09 |[Leetcode-207. Course Schedule](https://leetcode.com/problems/course-schedule/description/)|[c++](./leetcode/207.course-schedule.cpp), [python3](./leetcode/207.course-schedule.py)| Other |\-|\-| - |
// Tag: Array, Depth-First Search, Breadth-First Search, Union Find, Matrix
2
+
// Time: O(MN)
3
+
// Space: O(MN)
4
+
// Ref: -
5
+
// Note: -
6
+
7
+
// 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.
8
+
// An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.
0 commit comments