Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
list(range) solution in Clear category for Expand Intervals by m.kurapov
from typing import Iterable
def expand_intervals(items: Iterable) -> Iterable:
ret=[]
for start,end in items:
ret += list(range(start,end+1))
return ret
Nov. 27, 2020