LeetCode 1254 | Number of Closed Islands | POTD | Simple Intuition + Solution | Day 36
kawaki
0:00 / 0:00
LeetCode 1254 | Number of Closed Islands | POTD | Simple Intuition + Solution | Day 36
185 просмотров · 7 дн. назад
kawaki
33 подписчика
185 просмотров · 7 дн. назад
We are given a 2D grid consisting of 0s (land) and 1s (water). Our task is to count the number of islands that are completely surrounded by water.
⏱️ What You'll Learn
Understand the problem statement in simple language.
Develop the intuition to solve the problem.
Understand the grid and island concept.
⏱️ Timestamps
00:00 — Problem Explanation + Logic
04:07 — C++ Code
📌 Problem Details
Problem: 1254. Number of Closed Islands
Difficulty: Medium
Language: C++
If you're preparing for coding interviews or improving your Data Structures and Algorithms (DSA) skills, follow along and keep practicing!
👍 Like the video if you find it helpful.
💬 Comment below if you have any doubts.
🔔 Subscribe for daily LeetCode solutions and DSA content!
#LeetCode #LeetCodePOTD #DSA #CPlusPlus #GraphTheory #DFS #BFS #CodingInterview #Day36