Problem 1722 · Medium
Minimize Hamming distance using any number of allowed index swaps.
Open the interactive visualisation