We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
functionrotateLeft(d,arr){// Write your code hereconstlength=arr.length;for(leti=0;i<d;i++){constvalue=arr.splice(0,1);arr[length-1]=value[0];}returnarr;}
Left Rotation
You are viewing a single comment's thread. Return to all comments →
javascript solution: