Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
native_create_intervals solution in Uncategorized category for Create Intervals by Jon_Red
def create_intervals(data):
d,r=sorted(data),range(len(data))
return[i for i in zip(
[d[x]for x in range(len(data))if d[x-1]!=d[x]-1],
[d[y]for y in r if d[y]+1 not in d[y:]]
)]
June 15, 2020