You are viewing a single comment's thread. Return to all comments →
Smooth! In PHP:
<?php function rotLeft(`$a, $`d) { `$array1 = array_slice($`a, `$d, count($`a)); `$array2 = array_slice($`a, 0, $d); return array_merge(`$array1, $`array2); }
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 →
Smooth! In PHP: