Skip to content

Successor and predecessor of max and min values results in error #14

@Beakerboy

Description

@Beakerboy
    bst = RedBlackTree()
    
    bst.insert(55)
    bst.insert(40)
    bst.insert(58)
    bst.insert(42)

    assert bst.successor(bst.search(58)).key is None

while not y.is_null() and x == y.right:
E AttributeError: 'NoneType' object has no attribute 'is_null'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions