[Swift 알고리즘] Codility: CyclicRotation
https://app.codility.com/programmers/lessons/2-arrays/cyclic_rotation/ Lesson 2 Arrays (Easy) CyclicRotation Rotate an array to the right by a given number of steps. 주어진 정수 배열A를 K만큼 오른쪽으로 회전시키는 문제. 입출력 예시 var arr = [3,8,9,7,6] print(solution(&arr, 3)) //[9,7,6,3,8] 처음에 그냥 print(solution([3,8,9,7,6],3)) 으로 입력값을 주었더니 Cannot pass immutable value of type '[Int]' as inout argument 이라는 에러가 떴다! 처음보는 in..