AlgoMaster Logo

Smallest Range Covering Elements from K Lists

nums=[4,10,15,24,26], [0,9,12,20], [5,18,22,30]
0 / 33
value axis · window must cover every listL0410152426L1091220L25182230030slide a window covering one value per list; keep the narrowest one
algomaster.io
Step:Find the smallest range [lo, hi] that contains at least one number from every list