Design a Range Module data structure that effectively tracks ranges of numbers using half-open intervals and allows querying these ranges. A half-open interval
Implement the RangeModule class with the following specifications:
Constructor(): Initializes a new instance of the data structure.
Add Range(): Adds the half-open interval
Query Range(): Returns true if every real number within the interval
Remove Range(): Removes tracking for every real number within the half-open interval
Constraints:
left right
At most,
Design a Range Module data structure that effectively tracks ranges of numbers using half-open intervals and allows querying these ranges. A half-open interval
Implement the RangeModule class with the following specifications:
Constructor(): Initializes a new instance of the data structure.
Add Range(): Adds the half-open interval
Query Range(): Returns true if every real number within the interval
Remove Range(): Removes tracking for every real number within the half-open interval
Constraints:
left right
At most,