• + 1 comment

    Thats true. I got accepted for test case 8 using right rotation. We need to choose :

    If #rotations < (size /2) Use Left Rotation If #rotations > (size /2) Use Right Rotation