Skip to content

Return type of BinarySearchTree.predecessor is necessary? #865

@bbvch13531

Description

@bbvch13531

Brief Intro

predecessor, successor function in BinarySearchTree

public func predecessor() -> BinarySearchTree<T>?
public func successor() -> BinarySearchTree<T>?

Is BinarySearchTree<T>? necessary? I think BinarySearchTree? will fine.
If BinarySearchTree<T>? is necessary, would you please let me know the reason why?
If not, I take this issue and make PR.
Thanks 😄 .

More Details

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