How to solve this problem using bitmask or bit manuplation ??
Problem Link :https://mirror.codeforces.com/problemset/problem/1097/B Editorial Link :https://mirror.codeforces.com/blog/entry/64310
I am not able to understand the editorial which says that clockwise rotation will be done if ith bit is set to 0 and vive versa ?? Can someone explain in detail ?