Skip to content

Commit f8df45f

Browse files
aQuaaQua
aQua
authored and
aQua
committed
adding Problem 48
1 parent 67e8bbc commit f8df45f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
package Problem0048
22

3-
func rotate(matrix [][]int) {
4-
for i := 0; i < len(matrix)/2; i++ {
5-
3+
func rotate(m [][]int) {
4+
n := len(m)
5+
for i := 0; i < n/2; i++ {
6+
for j := i; j < n-i-1; j++ {
7+
m[j+i][i]
8+
}
69
}
710
}

0 commit comments

Comments
 (0)