Available question text
Find the connected component containing grid[row][col] (4-directionally adjacent cells with the same color) and recolor only its border cells—those on the grid edge or adjacent to a cell not in the component—typically found via a DFS/BFS flood-fill.
Related questions
Continue with questions that share topics or the same question type.
- Binary Tree Coloring Game
Coding · Binary Tree · Depth-First Search · Tree
- 0/1 Knapsack Problem with Time Complexity Optimization
Coding
- 01 Matrix
Coding
- 1 leetcode hard complex dp questions
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1034. Coloring A Border
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source