mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-05 00:25:22 +08:00
optimization code level from A to A+
This commit is contained in:
@ -27,24 +27,24 @@ func Test_Problem1260(t *testing.T) {
|
||||
|
||||
qs := []question1260{
|
||||
|
||||
question1260{
|
||||
para1260{[][]int{[]int{3, 7, 8}, []int{9, 11, 13}, []int{15, 16, 17}}, 2},
|
||||
ans1260{[][]int{[]int{16, 17, 3}, []int{7, 8, 9}, []int{11, 13, 15}}},
|
||||
{
|
||||
para1260{[][]int{{3, 7, 8}, {9, 11, 13}, {15, 16, 17}}, 2},
|
||||
ans1260{[][]int{{16, 17, 3}, {7, 8, 9}, {11, 13, 15}}},
|
||||
},
|
||||
|
||||
question1260{
|
||||
para1260{[][]int{[]int{1, 10, 4, 2}, []int{9, 3, 8, 7}, []int{15, 16, 17, 12}}, 10},
|
||||
ans1260{[][]int{[]int{4, 2, 9, 3}, []int{8, 7, 15, 16}, []int{17, 12, 1, 10}}},
|
||||
{
|
||||
para1260{[][]int{{1, 10, 4, 2}, {9, 3, 8, 7}, {15, 16, 17, 12}}, 10},
|
||||
ans1260{[][]int{{4, 2, 9, 3}, {8, 7, 15, 16}, {17, 12, 1, 10}}},
|
||||
},
|
||||
|
||||
question1260{
|
||||
para1260{[][]int{[]int{3, 8, 1, 9}, []int{19, 7, 2, 5}, []int{4, 6, 11, 10}, []int{12, 0, 21, 13}}, 4},
|
||||
ans1260{[][]int{[]int{12, 0, 21, 13}, []int{3, 8, 1, 9}, []int{19, 7, 2, 5}, []int{4, 6, 11, 10}}},
|
||||
{
|
||||
para1260{[][]int{{3, 8, 1, 9}, {19, 7, 2, 5}, {4, 6, 11, 10}, {12, 0, 21, 13}}, 4},
|
||||
ans1260{[][]int{{12, 0, 21, 13}, {3, 8, 1, 9}, {19, 7, 2, 5}, {4, 6, 11, 10}}},
|
||||
},
|
||||
|
||||
question1260{
|
||||
para1260{[][]int{[]int{1, 2, 3}, []int{4, 5, 6}, []int{7, 8, 9}}, 9},
|
||||
ans1260{[][]int{[]int{1, 2, 3}, []int{4, 5, 6}, []int{7, 8, 9}}},
|
||||
{
|
||||
para1260{[][]int{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}, 9},
|
||||
ans1260{[][]int{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}},
|
||||
},
|
||||
// 如需多个测试,可以复制上方元素。
|
||||
}
|
||||
|
Reference in New Issue
Block a user