• + 0 comments

    Simple solution in JS (not pure though:))

    function rotateLeft(d, arr) {
        // Write your code here
        while(d--) {
            arr.push(arr.shift());
        }
        
        return arr;
    }