Skip to content

Add successor and predecessor methods for BSTs #5943

@ybrenning

Description

@ybrenning

I would like to add a method get_predecessor() and get_successor() to the BinarySearchTree class implementation.
These are common algorithms performed on Binary Search Trees and will return the next lowest/next highest value from the tree based on a given BST and a given value.

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