Skip to content

Conversation

@pkerpedjiev
Copy link
Contributor

This PR should fix Issue #112.

Assuming the algorithm used is the one described in Cormon, Leirserson, Rivest book, each node (x) added to the interval tree should be assigned a max value (max[int[x]]) as well as an interval (int[x]). The previous version was assigning a max value of -Infinity, rather than max[int[x]].

@mgechev
Copy link
Owner

mgechev commented Dec 23, 2016

Awesome, thanks for the catch and the fix!

@mgechev mgechev merged commit b61a63b into mgechev:master Dec 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants