Files
LeetCode-Go/leetcode/0630.Course-Schedule-III/630. Course Schedule III_test.go
2021-05-09 09:17:12 +08:00

43 lines
677 B
Go

package leetcode
import (
"fmt"
"testing"
)
type question630 struct {
para630
ans630
}
// para 是参数
// one 代表第一个参数
type para630 struct {
courses [][]int
}
// ans 是答案
// one 代表第一个答案
type ans630 struct {
one int
}
func Test_Problem630(t *testing.T) {
qs := []question630{
{
para630{[][]int{{100, 200}, {200, 1300}, {1000, 1250}, {2000, 3200}}},
ans630{3},
},
}
fmt.Printf("------------------------Leetcode Problem 630------------------------\n")
for _, q := range qs {
_, p := q.ans630, q.para630
fmt.Printf("【input】:%v 【output】:%v\n", p, scheduleCourse(p.courses))
}
fmt.Printf("\n\n\n")
}