mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-06 17:44:10 +08:00
optimization code level from A to A+
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user