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:
@ -5,10 +5,10 @@ import (
|
||||
)
|
||||
|
||||
var dir = [][]int{
|
||||
[]int{-1, 0},
|
||||
[]int{0, 1},
|
||||
[]int{1, 0},
|
||||
[]int{0, -1},
|
||||
{-1, 0},
|
||||
{0, 1},
|
||||
{1, 0},
|
||||
{0, -1},
|
||||
}
|
||||
|
||||
// 解法一 并查集
|
||||
|
@ -26,14 +26,14 @@ func Test_Problem130(t *testing.T) {
|
||||
|
||||
qs := []question130{
|
||||
|
||||
question130{
|
||||
{
|
||||
para130{[][]byte{}},
|
||||
ans130{[][]byte{}},
|
||||
},
|
||||
|
||||
question130{
|
||||
para130{[][]byte{[]byte{'X', 'X', 'X', 'X'}, []byte{'X', 'O', 'O', 'X'}, []byte{'X', 'X', 'O', 'X'}, []byte{'X', 'O', 'X', 'X'}}},
|
||||
ans130{[][]byte{[]byte{'X', 'X', 'X', 'X'}, []byte{'X', 'X', 'X', 'X'}, []byte{'X', 'X', 'X', 'X'}, []byte{'X', 'O', 'X', 'X'}}},
|
||||
{
|
||||
para130{[][]byte{{'X', 'X', 'X', 'X'}, {'X', 'O', 'O', 'X'}, {'X', 'X', 'O', 'X'}, {'X', 'O', 'X', 'X'}}},
|
||||
ans130{[][]byte{{'X', 'X', 'X', 'X'}, {'X', 'X', 'X', 'X'}, {'X', 'X', 'X', 'X'}, {'X', 'O', 'X', 'X'}}},
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user