MCPcopy Create free account
hub / github.com/VanjaRo/LeetCode / main

Function main

tasks/48.go:5–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import "fmt"
4
5func main() {
6 matrix := [][]int{{5, 1, 9, 11}, {2, 4, 8, 10}, {13, 3, 6, 7}, {15, 14, 12, 16}}
7 for _, el := range matrix {
8 fmt.Println(el)
9 }
10 fmt.Println("")
11 rotate(matrix)
12
13 for _, el := range matrix {
14 fmt.Println(el)
15 }
16 fmt.Println("")
17
18}
19
20func rotate(matrix [][]int) {
21 n := len(matrix)

Callers

nothing calls this directly

Calls 1

rotateFunction · 0.85

Tested by

no test coverage detected