mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-31 16:14:39 +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},
|
||||
}
|
||||
|
||||
func longestIncreasingPath(matrix [][]int) int {
|
||||
|
Reference in New Issue
Block a user