How to solve this problem using bitmask or bit manuplation ??
Problem Link :https://codeforces.net/problemset/problem/1097/B Editorial Link :https://codeforces.net/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 ?