Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Expand Intervals by maister
from typing import Iterable
def expand_intervals(items: Iterable) -> Iterable:
res=[]
for i, j in items:
res += list(range(i, j+1))
return res
March 13, 2026