Available question text
Starting from (rStart,cStart), generate an outward clockwise spiral path (you may step outside the grid) and return the coordinates that lie inside the rows×cols bounds in the order they are first visited, stopping when all rows*cols cells have been output. This requires producing increasing-length spiral legs and filtering positions by grid bounds until every cell is covered.
Related questions
Continue with questions that share topics or the same question type.
- Spiral Matrix
Coding · Array · Matrix · Simulation
- Spiral Matrix II
Coding
- Spiral Matrix IV
Coding
- 01 Matrix
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 885. Spiral Matrix III
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source