optimization code level from A to A+

This commit is contained in:
YDZ
2020-08-26 23:43:03 +08:00
parent 7b7307761c
commit 96c36de45b
519 changed files with 2341 additions and 2322 deletions

View File

@ -12,10 +12,10 @@ func findWords(board [][]byte, words []string) []string {
// these is 79 solution
var dir = [][]int{
[]int{-1, 0},
[]int{0, 1},
[]int{1, 0},
[]int{0, -1},
{-1, 0},
{0, 1},
{1, 0},
{0, -1},
}
func exist(board [][]byte, word string) bool {