Deletion from tree not happening when there is only one node. · Issue #5 · codebasics/data-structures-algorithms-python · GitHub
Skip to content

Deletion from tree not happening when there is only one node. #5

Open

Description

@itsmepsk

Deletion not happening when there is only one node. The code should go like this:
tree = tree.delete(17)

Activity

  1. sandeep21tw commented on Apr 14, 2022

    @sandeep21tw

    Did you find the solution?
    i don't know the reason but i think this is something related to the fact we are returning None in the delete method. i don't understand how returning None is deleting the node in the first place!?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions