You are viewing a single comment's thread. Return to all comments →
My javascript solution
function processData(input) { const oprCount = input.split('\n')[0].split(' ')[1]; let arr = input.split('\n')[1].split(' '); arr.push(...arr.splice(0,oprCount)); console.log(arr.join(' ')); }
Seems like cookies are disabled on this browser, please enable them to open this website
Left Rotate the Array
You are viewing a single comment's thread. Return to all comments →
My javascript solution