Skip to content

Bst delete#13

Open
jefimenko wants to merge 17 commits intobst-traversefrom
bst-delete
Open

Bst delete#13
jefimenko wants to merge 17 commits intobst-traversefrom
bst-delete

Conversation

@jefimenko
Copy link
Owner

No description provided.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see three conditions here:

  1. the node has no children
  2. the node has at least a left child
  3. any other situation

I don't think this is an exhaustive set of the possibilities for deletion. Make sure you have tests that cover having a child to the left, a child to the right and children on both sides. Make sure you test having extra nodes below the children of the node to be deleted. With exhaustive tests you can be sure everything is working, but your tests do not appear exhaustive to me.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants