Skip to content

Commit 9894541

Browse files
aQuaaQua
aQua
authored and
aQua
committed
59 finish
1 parent 3bdd2d7 commit 9894541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Algorithms/0059.spiral-matrix-ii/spiral-matrix-ii.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func generateMatrix(n int) [][]int {
1010
res[i] = make([]int, n)
1111
}
1212

13-
// 4 条边界
13+
// 4 条边界,依照题意,沿着边界填写
1414
top, bottom, left, right := 0, n-1, 0, n-1
1515
num := 1
1616
for top <= bottom && left <= right {

0 commit comments

Comments
 (0)