Skip to content

go binary-trees improvement

CONTRIBUTE SOURCE CODE

Go binary-trees Gerardo Lima

Run.go

Provide an example build command-line

MAKE:
go build -o binarytrees.go-9.go_run Run.go

COMMAND LINE:
./binarytrees.go-9.go_run 21

PROGRAM OUTPUT:
stretch tree of depth 22         check: 8388607
2097152  trees of depth 4        check: 65011712
524288   trees of depth 6        check: 66584576
131072   trees of depth 8        check: 66977792
32768    trees of depth 10       check: 67076096
8192     trees of depth 12       check: 67100672
2048     trees of depth 14       check: 67106816
512      trees of depth 16       check: 67108352
128      trees of depth 18       check: 67108736
32       trees of depth 20       check: 67108832
long lived tree of depth 21      check: 4194303
Edited by Gerardo Lima