• + 0 comments

    javascript solution:

    function rotateLeft(d, arr) {
        // Write your code here
        const length = arr.length;
        for(let i = 0; i < d; i++) {
            const value = arr.splice(0, 1);
            arr[length-1] = value[0];
        }
        return arr;
    
    }