www.hackerrank.com/challenges/array-left-rotation/problem
Left Rotation | HackerRank
Given an array and a number, d, perform d left rotations on the array.
www.hackerrank.com
배열과 숫자를 입력받고 입력받은 숫자만큼 배열을 왼쪽으로 돌리는 문제
예를들어 4라는 숫자를 입력받으면 4번 왼쪽으로 하나씩 배열의 원소를 옮기면 된다.

코드는 다음과 같다.

www.hackerrank.com/challenges/array-left-rotation/problem
Left Rotation | HackerRank
Given an array and a number, d, perform d left rotations on the array.
www.hackerrank.com
배열과 숫자를 입력받고 입력받은 숫자만큼 배열을 왼쪽으로 돌리는 문제
예를들어 4라는 숫자를 입력받으면 4번 왼쪽으로 하나씩 배열의 원소를 옮기면 된다.

코드는 다음과 같다.
