해커랭크
-
Interview Preparation KitArraysArrays: Left Rotation해커랭크(HackerRank) 2018. 7. 4. 17:03
https://www.hackerrank.com/challenges/ctci-array-left-rotation/problem?h_l=playlist&slugs%5B%5D=interview&slugs%5B%5D=interview-preparation-kit&slugs%5B%5D=arrays 1. 문제배열의 요소 회전 하는 문제 2. 알고리즘키워드 - 배열 3. 코드 12345678910111213// Complete the rotLeft function below.vector rotLeft(vector a, int d) { const int size = a.size(); vector brr(size); for(int i=0; i