alexbol99 / flatten-interval-tree

Interval binary search tree
MIT License
41 stars 21 forks source link

Wrong result when low or high is 0 #10

Closed BrotherJing closed 3 years ago

BrotherJing commented 5 years ago
// node.js
let high = this.left.max.high ? this.left.max.high : this.left.max;
// ...
let low = this.right.max.low ? this.right.max.low : this.right.item.key.low;
alexbol99 commented 5 years ago

@BrotherJing Bug fixed in release 1.0.8 Thank you for cooperation