You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
thinktinker
changed the title
Possible error found within the code of method fixTreeProperties(node) on page 264
Chapter 10: Possible error found within the code of method fixTreeProperties(node) on page 264
Sep 15, 2018
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.
The text was updated successfully, but these errors were encountered: