Entries from 2019-03-15 to 1 day

PermMissingElem 100% Solution in Javascript

Question app.codility.com My Solution app.codility.com function solution(A) { if (A.length === 0) return 1; let arrSum = A.reduce( (prev, curr) => prev + curr ); let permSum = (1 + A.length + 1)*(A.length + 1)/2; return permSum-arrSum; } N…

FrogJmp 100% Solution in Javascript

Question app.codility.com My Solution app.codility.com function solution(X, Y, D) { return Math.ceil((Y-X)/D); }

Update node.js on MacOS

brew upgrade node brew link node