Arrays: Left Rotation

  • + 0 comments

    reverse it

    arr1=a[0:d]

    arr2=a[d:]

    return arr2+arr1