- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
1s Surrounded by 0s. GFG POTD
Given an n × m binary matrix grid[][], find the total count of all cells containing 1 that are unable to move out of the grid through a path of adjacent 1s.
Adjacency means you can only move in four directions: Up, Down, Left, and Right. Diagonal moves are not allowed.
Assume that the space immediately outside the grid is an open path. Any 1 located directly on the outer boundary of the grid (first row, last row, first column, or last column) can immediately step out, and any 1 connected to it can follow and also step out of the grid.
LIKE the video, COMMENT if you have any questions and SHARE it with your loved once's. SeaU
https://www.geeksforgeeks.org/problems/1s-surrounded-by-0s/1
#GeeksforGeeks #1sSurroundedBy0s #array #trees #CodingInterview #DSA #Algorithms #GFGPOTD #Programming #ProblemSolving #OBrutus #TechInterview #datastructures #graph #trees #graphvstree #size #dfs #bfs #subtree #sub #treematch #mothervertex #vertex #BFSProblems #FloodFill #MatrixProblems
#DataStructures #JavaProgramming #DailyChallenge #GraphTraversal #DSAWithOBrutus #KodeLoad
Видео 1s Surrounded by 0s. GFG POTD канала OBrutus
Adjacency means you can only move in four directions: Up, Down, Left, and Right. Diagonal moves are not allowed.
Assume that the space immediately outside the grid is an open path. Any 1 located directly on the outer boundary of the grid (first row, last row, first column, or last column) can immediately step out, and any 1 connected to it can follow and also step out of the grid.
LIKE the video, COMMENT if you have any questions and SHARE it with your loved once's. SeaU
https://www.geeksforgeeks.org/problems/1s-surrounded-by-0s/1
#GeeksforGeeks #1sSurroundedBy0s #array #trees #CodingInterview #DSA #Algorithms #GFGPOTD #Programming #ProblemSolving #OBrutus #TechInterview #datastructures #graph #trees #graphvstree #size #dfs #bfs #subtree #sub #treematch #mothervertex #vertex #BFSProblems #FloodFill #MatrixProblems
#DataStructures #JavaProgramming #DailyChallenge #GraphTraversal #DSAWithOBrutus #KodeLoad
Видео 1s Surrounded by 0s. GFG POTD канала OBrutus
GeeksforGeeks POTD GFG Problem of the Day Coding Interview Questions Data Structures and Algorithms DSA Tutorial Java GFG Solution Python GFG Solution OBrutus Competitive Programming Beginner Interview Coding Collection Binary Tree Search Tree DFS BFS Depth First Search Breadth First Search Tree Traversal Graph DSA Binary Matrix Graph Traversal Border Elimination Interior Islands Java GeeksForGeeks 1s Surrounded by 0s Count Enclosed 1s
Комментарии отсутствуют
Информация о видео
22 мая 2026 г. 1:17:55
00:14:21
Другие видео канала




















