You are viewing a single comment's thread. Return to all comments →
Typescript
function rotateLeft(d: number, arr: number[]): number[] { return [...arr.slice(d), ...arr.slice(0, d)]; }
Seems like cookies are disabled on this browser, please enable them to open this website
Left Rotation
You are viewing a single comment's thread. Return to all comments →
Typescript