Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Create Intervals by fed.kz
def create_intervals(data):
result = []
while data:
count = min_value = min(data)
while count in data:
data.discard(count)
count += 1
result += [(min_value, count-1)]
return result
Oct. 13, 2018