0
Convert a list of integers into ranges
Given a list of integers (positive or negative), output the smallest list of ranges needed to represent that list.
An example: [1,2,3,4] can be represented as the range (as start-inclusive end-exclusive) [range(1,5)].
[1,2,3,8,9] can be represented as [ra...