Skip to content

Chapter 10: Possible error found within the code of method fixTreeProperties(node) on page 264 #106

@thinktinker

Description

@thinktinker

The following while condition is not valid as method isRed() shouldn't be invokable through .color.

while (node && node.parent && node.parent.color.isRed() && node.color !== Colors.BLACK){
//rest of the code block in here
}

By the way, I couldn't find the code for chapter 10's RedBlackTree and RedBlackNode anywhere in the downloaded code or in the git repo here. Please advise. Thank You.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions