Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erratum: chapter 2 #4

Closed
khosrogh opened this issue Dec 12, 2021 · 1 comment
Closed

erratum: chapter 2 #4

khosrogh opened this issue Dec 12, 2021 · 1 comment

Comments

@khosrogh
Copy link

  • Page 43, the output of the code below should be different:
 [1]: yellow = {'dandelions', 'fire hydrant', 'leaves'}

 [2]: red = {'fire hydrant', 'blood', 'rose', 'leaves'}

 [3]: yellow&red

In the book, it is written {'fire hydrant'}, but it should be {'leaves', 'fire hydrant'}.

  • Page 54: in the Terminology table, the Sibling nodes' definition reads: "Two nodes in a tree are called siblings if they are at the same level." By this definition, in the page 55 image, nodes E and F are also siblings, which is incorrect. I found out siblings node definition in here and here. I think the definition should be changed in one of these ways:

    • Sibling nodes are nodes on the same hierarchical level under the same parent node.

    • Child nodes with the same parent are sibling nodes.

@rajat-packt
Copy link
Contributor

The above listed issues have been verified, and we have updated the readme to reflect the same.
We'll be closing this issue, thanks for the feedback, appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants