Skip to content

Binary Search Tree rotateRight() duplicates the nodes after rotation #2

Closed
@ghost

Description

    node.lesser = greater;
    if (greater != null)
        greater.parent = node;

greater node is already node.greater.
By above assignment, the greater is now assigned to both node.lesser and node.greater

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