| 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: a need for so many special cases? | |
|---|---|
| Tweet Topic Started: Feb 21 2014, 09:48 AM (43 Views) | |
| jjime022 | Feb 21 2014, 09:48 AM Post #1 |
|
I was thinking, I don't think we need so many special cases for remove. Out of curiosity I used only the code for when a node had two children. When I ran it, it was properly removing most of the nodes. Eventually it segfaulted, but I think I can get it to work with just that code. I think it can work because in a way each node always has two children. Sometimes the children will be NULL, two nodes, or a mix. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Homework 6 · Next Topic » |






12:15 PM Jul 11