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:
@ -26,19 +26,19 @@ func Test_Problem542(t *testing.T) {
|
||||
|
||||
qs := []question542{
|
||||
|
||||
question542{
|
||||
para542{[][]int{[]int{0, 0, 0}, []int{0, 1, 0}, []int{0, 0, 0}}},
|
||||
ans542{[][]int{[]int{0, 0, 0}, []int{0, 1, 0}, []int{0, 0, 0}}},
|
||||
{
|
||||
para542{[][]int{{0, 0, 0}, {0, 1, 0}, {0, 0, 0}}},
|
||||
ans542{[][]int{{0, 0, 0}, {0, 1, 0}, {0, 0, 0}}},
|
||||
},
|
||||
|
||||
question542{
|
||||
para542{[][]int{[]int{0, 0, 0}, []int{0, 1, 0}, []int{1, 1, 1}}},
|
||||
ans542{[][]int{[]int{0, 0, 0}, []int{0, 1, 0}, []int{1, 2, 1}}},
|
||||
{
|
||||
para542{[][]int{{0, 0, 0}, {0, 1, 0}, {1, 1, 1}}},
|
||||
ans542{[][]int{{0, 0, 0}, {0, 1, 0}, {1, 2, 1}}},
|
||||
},
|
||||
|
||||
question542{
|
||||
para542{[][]int{[]int{1, 1, 1, 1, 1, 1}, []int{1, 1, 1, 1, 1, 1}, []int{1, 1, 0, 0, 1, 1}, []int{1, 1, 0, 0, 1, 1}, []int{1, 1, 1, 1, 1, 1}, []int{1, 1, 1, 1, 1, 1}}},
|
||||
ans542{[][]int{[]int{4, 3, 2, 2, 3, 4}, []int{3, 2, 1, 1, 2, 3}, []int{2, 1, 0, 0, 1, 2}, []int{2, 1, 0, 0, 1, 2}, []int{3, 2, 1, 1, 2, 3}, []int{4, 3, 2, 2, 3, 4}}},
|
||||
{
|
||||
para542{[][]int{{1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1}, {1, 1, 0, 0, 1, 1}, {1, 1, 0, 0, 1, 1}, {1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1}}},
|
||||
ans542{[][]int{{4, 3, 2, 2, 3, 4}, {3, 2, 1, 1, 2, 3}, {2, 1, 0, 0, 1, 2}, {2, 1, 0, 0, 1, 2}, {3, 2, 1, 1, 2, 3}, {4, 3, 2, 2, 3, 4}}},
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user