3 ms·
A few years back we had a programming challenge to solve the generalized medium puzzle. If you want to try solving it through code check it out here: https://cs
by mihaic 4y ago
A few years back we had a programming challenge to solve the generalized medium puzzle. If you want to try solving it through code check it out here: https://csacademy.com/contest/archive/task/circular_shift_sort https://csacademy.com/contest/archive/task/circular_shift_so...
It also has a detailed description of the solution in the more complicated cases, depending on the parity of each dimension.