Skip to content

Instantly share code, notes, and snippets.

View jdenly's full-sized avatar

Jon Denly jdenly

  • Sydney, Australia
View GitHub Profile
@jdenly
jdenly / trees.go
Last active January 12, 2022 04:50
Solution to A Tour of Go - Exercise: Equivalent Binary Trees
package main
import "golang.org/x/tour/tree"
import "fmt"
import "reflect"
// Walk walks the tree t sending all values
// from the tree to the channel ch.
func Walk(t *tree.Tree, ch chan int) {
var walk func(t *tree.Tree)

Keybase proof

I hereby claim:

  • I am jdenly on github.
  • I am jond (https://keybase.io/jond) on keybase.
  • I have a public key ASBQcr-b6BVgkxNJHZruKJkpHjK_YQ8p761cIH7H0hcEHAo

To claim this, I am signing this object: