サイズ4の配列があり、5つの要素があるとします
1) 0,1,2,3
2) 4,0,1,2 after 1st rotation
3) 3,4,0,1 after 2nd rotation
4) 2,3,4,0 after 3rd rotation
5) 1,2,3,4 after 4th rotation
6) 0,1,2,3 after 5th rotation
ご覧のとおり、5回の反復後に数値が繰り返されます。配列の k 番目の要素を効率的に検索する方法はありますか? N回転と言った後??