Skip to content

Conversation

@WeberNick
Copy link
Contributor

For the max property to hold, a node needs to select the highest max value from its left child, right child and own max value. As not all the max values (left/right/own) where considered after tree rotation, the max property was violated sometimes.
fixes: #2

@5cript 5cript merged commit c0220c1 into 5cript:master Apr 2, 2019
@5cript
Copy link
Owner

5cript commented Apr 2, 2019

Thanks for this awesome contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants