提交尝试但未通过的题

This commit is contained in:
YDZ
2020-08-07 17:33:00 +08:00
parent 4e11f4028a
commit f918be35eb
18 changed files with 900 additions and 0 deletions

View File

@ -0,0 +1,5 @@
package leetcode
func maximalRectangle(matrix [][]byte) int {
return 0
}

View File

@ -0,0 +1,42 @@
package leetcode
import (
"fmt"
"testing"
)
type question85 struct {
para85
ans85
}
// para 是参数
// one 代表第一个参数
type para85 struct {
one [][]byte
}
// ans 是答案
// one 代表第一个答案
type ans85 struct {
one int
}
func Test_Problem85(t *testing.T) {
qs := []question85{
question85{
para85{[][]byte{[]byte{'1', '0', '1', '0', '0'}, []byte{'1', '0', '1', '1', '1'}, []byte{'1', '1', '1', '1', '1'}, []byte{'1', '0', '0', '1', '0'}}},
ans85{6},
},
}
fmt.Printf("------------------------Leetcode Problem 85------------------------\n")
for _, q := range qs {
_, p := q.ans85, q.para85
fmt.Printf("【input】:%v 【output】:%v\n", p, maximalRectangle(p.one))
}
fmt.Printf("\n\n\n")
}