Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.

Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).

func rotate(m [][]int) { N := len(m) for i := 0; i < (N) / 2; i ++ { for j := 0; j < (N+1)/2 ; j++{ m[j][N-i-1], m[N-i-1][N-j-1],m[N-j-1][i],m[i][j] = m[i][j],m[j][N-i-1],m[N-i-1][N-j-1],m[N-j-1][i] } } }

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.