-
Lesson2. Arrays - CyclicRotationAlgorithm/codility 2018. 7. 23. 15:33
CyclicRotation - Rotate an array to the right by a given number of steps.
https://app.codility.com/programmers/lessons/2-arrays/cyclic_rotation/
문제요약
배열 A와 정수 K가 주어지면 A를 오른쪽으로 K번 shift해서 반환Assume that:
N and K are integers within the range [0..100];
each element of array A is an integer within the range [−1,000..1,000].
In your solution, focus on correctness. The performance of your solution will not be the focus of the assessment.
풀이