website icon indicating copy to clipboard operation
website copied to clipboard

tour: let reader know Walk should send in order

Open crisman opened this issue 1 year ago • 1 comments

In "Exercise: Equivalent Binary Trees" neither the slide text nor the code state Walk() should send the values in order. Doing so in order makes using the output much more useful in Same(), but might not be easy to see for readers that have not had a data structures class. In order traversal is implied by reference with the binary tree being "always sorted" and the output defined as "should be the numbers 1, 2, 3, ..., 10."

Update the slide text to say what Walk() does. Change Walk() comments in code/solution to match.

Fixes golang/tour#158

crisman avatar Feb 28 '23 21:02 crisman

This PR (HEAD: e1db6b59515d13a52e8340e8d99f69037da241ed) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/website/+/472315 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off) See the Wiki page for more info

gopherbot avatar Feb 28 '23 21:02 gopherbot