refactor: removed map for visited and added field to node
This commit is contained in:
@ -30,6 +30,7 @@ type Node struct {
|
||||
Coords Coordinates
|
||||
Up, Down *Node
|
||||
Left, Right *Node
|
||||
Visited bool `default:"false"`
|
||||
}
|
||||
|
||||
func NewNode(coords Coordinates) *Node {
|
||||
|
Reference in New Issue
Block a user