Library to perform operations related to integer intervals. Intervals.java is the core class which has the main logic.
Import the project as gradle project in your favourite IDE. This is standard java project which has gradle as build tool.
Run command from project root directory
./gradlew build
Run command from project root directory
./gradlew test
input validation ( n : linear) + input sorting/ordering ( nlogn) + building new intervals ( n : linear) = nlogn