Problem 1296 · Medium

Divide Array in Sets of K Consecutive Numbers

Decide whether all values partition into groups of k consecutive numbers.

Open the interactive visualisation