Added License, Readme and Changelog files. Remove Sort() from Intervals interface (not needed because it's called on each operation).

This commit is contained in:
Daniel Gil
2018-06-28 15:50:17 +02:00
parent a2babcb962
commit 2d951cee05
4 changed files with 175 additions and 3 deletions

View File

@@ -21,9 +21,6 @@ type Intervals interface {
// AddInterval appends a new interval to the list. If the interval range (low, high) is invalid, it returns an error
AddInterval(itvl *Interval) error
// Sort sorts the intervals list by the Low property (ascending)
Sort()
// HasGaps returns true if exists gaps for the introduced intervals between MinLow and MaxHigh
HasGaps() bool