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

🆕🎓 Revisit tree node's having reference to their parents #348

Open
jameshughes89 opened this issue Sep 28, 2021 · 0 comments
Open
Labels
content --- mortar_board 🎓 Related to course content (topics, assignments, etc.) enhancement/new 🆕 New feature, content, files, or request

Comments

@jameshughes89
Copy link
Owner

Related Issues or PRs

As discussed in #347.

What

Some of the binary tree functions can be simplified, or at least cleaned up, if each node has reference to their parents.

Why

Sure, it's not needed, but it would be cool to show an alternative implementation with a quick change to the node class. Besides, not having a reference to the parent is ultimately arbitrary.

Where

Topic24? Hard to Say. It could be an aside for topic 24, or perhaps something to discuss in 2nd year. Could always have fun and have it be an exam question or something.

How

Re-implement the binary tree node with a reference for a parent node.

Additional Notes

Obviously it's not needed, but it would be a great exercise for students either way.

@jameshughes89 jameshughes89 added enhancement/new 🆕 New feature, content, files, or request content --- mortar_board 🎓 Related to course content (topics, assignments, etc.) labels Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content --- mortar_board 🎓 Related to course content (topics, assignments, etc.) enhancement/new 🆕 New feature, content, files, or request
Projects
None yet
Development

No branches or pull requests

1 participant