Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Smallest Range Covering Elements from K Lists
Bookmark
Input
Standard
Identical
Evenly spaced
Small
Custom
nums
=
[4,10,15,24,26], [0,9,12,20], [5,18,22,30]
L0
4
10
15
24
26
L1
0
9
12
20
L2
5
18
22
30
Heap:
[]
Current Max:
-
Current Range:
-
Best Range:
-
algo
master
.
io
Step:
Find the smallest range that includes at least one number from each of the k lists
0 / 30
Input
Standard
Identical
Evenly spaced
Small
Custom
nums
=
[4,10,15,24,26], [0,9,12,20], [5,18,22,30]
0 / 30
L0
4
10
15
24
26
L1
0
9
12
20
L2
5
18
22
30
Heap:
[]
Current Max:
-
Current Range:
-
Best Range:
-
algo
master
.
io
Step:
Find the smallest range that includes at least one number from each of the k lists