Problem 2369 · Medium

Check if There is a Valid Partition For The Array

Mark each prefix that splits into equal pairs, equal triples or consecutive triples.

Open the interactive visualisation