Problem 1502 · Easy

Can Make Arithmetic Progression From Sequence

Decide whether the values can be reordered into equal steps by sorting and checking neighbouring differences. The visual lines the sorted values up and marks each gap.

Open the interactive visualisation