Created
August 19, 2020 20:09
-
-
Save esys/59e730544a89e007b02bde21537c6888 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
start := time.Now() | |
n := NewNode(1) | |
n.Left = NewNode(2) | |
n.Right = NewNode(3) | |
n.Left.Left = NewNode(4) | |
n.Left.Right = NewNode(5) | |
n.Right.Left = NewNode(6) | |
n.Right.Right = NewNode(7) | |
n.Right.Right.Left = NewNode(8) | |
DFRec(n) | |
fmt.Printf("took %v", time.Now().Sub(start)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment