Available question text
Generate an n×n matrix containing the integers 1..n^2 arranged in clockwise spiral order, starting at the top-left and proceeding along the top row, right column, bottom row, and left column repeatedly until the matrix is filled.
Related questions
Continue with questions that share topics or the same question type.
- Spiral Matrix
Coding · Array · Matrix · Simulation
- Spiral Matrix III
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 59. Spiral Matrix II
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source