| Welcome to UCR CS 14 Klefstad. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| remove function not deleting the target node | |
|---|---|
| Tweet Topic Started: Nov 13 2013, 05:16 PM (77 Views) | |
| Deleted User | Nov 13 2013, 05:16 PM Post #1 |
|
Deleted User
|
I have nearly used 3 different algorithms for the remove TreeNode:: class function; they are all pretty logical but they all don't delete the targeted TreeNode or it deletes it and break the tree....i'm running out of options, so if anyone has a good algorithm please share. Thanks, |
|
|
| Deleted User | Nov 15 2013, 05:33 PM Post #2 |
|
Deleted User
|
What is the situation that causes the target node to not be removed? (ie: when it has 1 child, 2 children or 0 children) |
|
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Homework 6 · Next Topic » |





12:16 PM Jul 11