AlgoMaster Logo

Summary Ranges

nums=[0, 1, 2, 4, 5, 7]
0 / 20
012345012457result[ ]
algomaster.io
Step:Start: merge runs of consecutive numbers into ranges