tour: btrees do not store values just in leaves

The concurrency/7 slide (the binary tree exercise) says:

> There can be many different binary trees with the same sequence of
  values stored at the leaves.

Which is misleading: in the btree in the exercise, values are not
stored just in the leaves, the internal nodes hold values too.

Fixes golang/tour#774

Change-Id: I71af71ccf36ac8ad87dfe73b751b461890c3a7e0
Reviewed-on: https://go-review.googlesource.com/c/tour/+/179937
Reviewed-by: Andrew Bonventre <andybons@golang.org>
1 file changed
tree: c01a94446dd343f14f3aab9fb13e1d2ed2b8df1b
  1. .gcloudignore
  2. AUTHORS
  3. CONTRIBUTING.md
  4. CONTRIBUTORS
  5. LICENSE
  6. README.md
  7. TODO
  8. TRANSLATE
  9. app.yaml
  10. appengine.go
  11. codereview.cfg
  12. content/
  13. fmt.go
  14. go.mod
  15. go.sum
  16. gotour/
  17. local.go
  18. pic/
  19. reader/
  20. solutions/
  21. static/
  22. template/
  23. tools/
  24. tour.go
  25. tree/
  26. wc/
README.md

Go Tour

A Tour of Go is an introduction to the Go programming language. Visit https://tour.golang.org to start the tour.

Download/Install

To install the tour from source, first set up a workspace and then run:

$ go get golang.org/x/tour

This will place a tour binary in your workspace's bin directory, which can be run offline.

Contributing

Contributions should follow the same procedure as for the Go project: https://golang.org/doc/contribute.html

To run the tour server locally:

dev_appserver.py app.yaml

and then visit http://localhost:8080/ in your browser.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the tour is located at https://github.com/golang/go/issues. Prefix your issue with “tour:” in the subject line, so it is easy to find.

License

Unless otherwise noted, the go-tour source files are distributed under the BSD-style license found in the LICENSE file.