What is the direction of rotation?


#1

Is array rotated clockwise or anticlockwise or can be both??please clarify!


#2

Doesn’t matter.

Rotation k times in clockwise is same as n-k times in anticlockwise direction