Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interval ¶
type Interval struct {
Start, End int
}
Interval represents a linear span between start and end positions.
func MergeOverlappingIntervals ¶
MergeOverlappingIntervals merges any overlapping intervals. Runs in O(N log N) because of the sorting.
Click to show internal directories.
Click to hide internal directories.