Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
chain solution in Uncategorized category for Expand Intervals by quarkov
from itertools import chain
expand_intervals = lambda items: chain(*[[n for n in range(s, f+1)] for s, f in items])
Nov. 20, 2019