Class Ranges
java.lang.Object
range.exercise.Ranges
- Author:
- __STUDENT_NAME__, Dennis Cosgrove
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Ranges
public Ranges()
-
-
Method Details
-
slice
Creates an array ofRangeobjects of length numRanges. Each slice in the returned result should be allocated a balanced amount of the range. Any remaining data should be distributed one each to the front slices.- Parameters:
min- minimum (inclusive) of the range to slicemaxExclusive- maximum (exclusive) of the range to slicenumRanges- the number of ranges to divide [minInclusive, maxExclusive) into- Returns:
- the created array of ranges
-