Easy20 pts
Circular Array Rotation
Array a, k right rotations, m queries: index. Output a[(idx) after rotation].
Input
n k q\na[]\nm lines: index
Output
Value at each queried index.
Sample
3 2 3 1 2 3 0 1 2
Expected
2 3 1
Loading editor…
Output
No output yet. Run your code to see results.