Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Expand Intervals by rafal.pawlowski
from typing import Iterable
def expand_intervals(items: Iterable) -> Iterable:
return [el for item in items for el in range(item[0],item[-1] + 1)]
April 6, 2019