Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
yield from range solution in Clear category for Expand Intervals by veky
from typing import Iterable
def expand_intervals(intervals: Iterable) -> Iterable:
for a, b in intervals: yield from range(a, 1+b)
Dec. 13, 2018
Comments: