HF RL Explorer

Task: Implement a Sorted Range Manager with Overlap Detection

Task: Implement a Sorted Range Manager with Overlap Detection: a task in Terminal-Lego-15k (Harbor dataset). You need to implement a Python class called SortedRangeManager that maintains a collection of non-overlapping ranges in sorted order. The class should efficiently insert new ranges while…

The task

You need to implement a Python class called `SortedRangeManager` that maintains a collection of non-overlapping ranges in sorted order. The class should efficiently insert new ranges while preventing overlaps.

Part of PrimeIntellect/Terminal-Lego-15k.