mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-05 16:36:41 +08:00
optimization code level from A to A+
This commit is contained in:
@ -27,22 +27,22 @@ func Test_Problem718(t *testing.T) {
|
||||
|
||||
qs := []question718{
|
||||
|
||||
question718{
|
||||
{
|
||||
para718{[]int{0, 0, 0, 0, 0}, []int{0, 0, 0, 0, 0}},
|
||||
ans718{5},
|
||||
},
|
||||
|
||||
question718{
|
||||
{
|
||||
para718{[]int{1, 2, 3, 2, 1}, []int{3, 2, 1, 4, 7}},
|
||||
ans718{3},
|
||||
},
|
||||
|
||||
question718{
|
||||
{
|
||||
para718{[]int{0, 0, 0, 0, 1}, []int{1, 0, 0, 0, 0}},
|
||||
ans718{4},
|
||||
},
|
||||
|
||||
question718{
|
||||
{
|
||||
para718{[]int{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0}},
|
||||
ans718{59},
|
||||
},
|
||||
|
Reference in New Issue
Block a user