Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Another simple oneliner solution in Clear category for Create Intervals by StefanPochmann
def create_intervals(data):
return list(zip(sorted(x for x in data if x-1 not in data),
sorted(x for x in data if x+1 not in data)))
July 27, 2017
Comments: