Left Rotation:
function rotateLeft(d, arr) {
for(let i=0; i < d; i++){
arr.push(arr.shift());
}
return arr;
}
For further actions, you may consider blocking this person and/or reporting abuse
Left Rotation:
function rotateLeft(d, arr) {
for(let i=0; i < d; i++){
arr.push(arr.shift());
}
return arr;
}
For further actions, you may consider blocking this person and/or reporting abuse
Fatemeh Paghar -
PythonIsNotASnake -
Jakub Jabłoński -
Sh Raj -
Top comments (0)