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

Function main

tasks/85.go:5–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import "fmt"
4
5func main() {
6 // matrix := [][]byte{
7 // {'1', '1', '1', '1', '1', '1', '1', '1'},
8 // {'1', '1', '1', '1', '1', '1', '1', '0'},
9 // {'1', '1', '1', '1', '1', '1', '1', '0'},
10 // {'1', '1', '1', '1', '1', '0', '0', '0'},
11 // {'0', '1', '1', '1', '1', '0', '0', '0'}}
12
13 // matrix2 := [][]byte{
14 // {'1', '0', '0', '0', '1'},
15 // {'1', '1', '0', '1', '1'},
16 // {'1', '1', '1', '1', '1'},
17 // }
18
19 matr3 := [][]byte{
20 {'1', '0', '1', '1', '1'},
21 {'0', '1', '0', '1', '0'},
22 {'1', '1', '0', '1', '1'},
23 {'1', '1', '0', '1', '1'},
24 {'0', '1', '1', '1', '1'},
25 }
26 fmt.Print(maximalRectangle(matr3))
27}
28
29func maximalRectangle(matrix [][]byte) int {
30 area := 0

Callers

nothing calls this directly

Calls 2

maximalRectangleFunction · 0.85
PrintMethod · 0.80

Tested by

no test coverage detected