Left Rotation

  • + 0 comments

    My rust solution:

    fn rotateLeft(d: i32, arr: &mut [i32]) {
        arr.rotate_left(d as usize);
    }