Arrays: Left Rotation

  • + 10 comments

    pretty simple in js:

    a.splice(k).concat(a.slice(0, k)).join(' ')