function solution(X, Y, D) {
return Math.ceil((Y - X) / D);
}


'IT General' 카테고리의 다른 글

Codility #7-Nesting  (0) 2018.08.18
Codility #3-PermMissingElem  (0) 2018.08.18
Codility #2-OddOccurrencesInArray  (0) 2018.08.18
Codility #2-CyclicRotation  (0) 2018.08.18
Fibonacci function without recursion  (0) 2018.08.15

+ Recent posts