Problem 3819 · Medium

Rotate Non Negative Elements

Rotate only the non-negative values among themselves, keeping every negative value in its own slot.

Open the interactive visualisation