[Codility/Swift] lesson 2 : CyclicRotation
Task description
Notice : N and K can be 0
Solution
To solve this problem, I use another array. The rotate function creates a temporary array, takes the last item of array A first, and then appends each item from array A.
In my first attempt, I mi...
studio-pendant.hashnode.dev1 min read