Problem 1806 · Medium

Minimum Number of Operations to Reinitialize a Permutation

Find the positive number of shuffle operations needed to restore the initial even-length permutation.

Open the interactive visualisation