Skip to content

Conversation

RadixSeven
Copy link

Without this fix, hull returns the wrong result when one interval is completely contained in the other. And the new code is a little easier to understand.

Interval(4, 7).hull(Interval(5, 6))

returns

Interval(4, 6)

not the correct answer of

Interval(4, 7)

Without this fix, hull returns the wrong result when one interval is completely contained in the other

    Interval(4, 7).hull(Interval(5, 6))

returns

    Interval(4, 6)

not the correct answer of

    Interval(4, 7)
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.

1 participant