day 18a incomplete

was unable to complete the challenge today

Ideally, I would like to wait for generics to release in Go version 1.18 (February 2022)

decided to spend the time working on an implementation of a Binary Search Tree that makes use of the string that is currently stored in the Node Item
This commit is contained in:
2021-12-18 22:09:37 +00:00
parent 76231d6a37
commit 5bd95a716f
6 changed files with 257 additions and 26 deletions
+13 -1
View File
@@ -1,6 +1,18 @@
package shared
//Waiting for generic types to release,
//this will allow for a Node with a different value type
type Node struct {
Value string
Next *Node
//Universal
Parent *Node
//For LLs, Stacks, Queues...
Next *Node
//For Binary Trees...
Left *Node
Right *Node
}