...

/

Challenge 8: Right Rotate an Array by One

Challenge 8: Right Rotate an Array by One

With the given array, rotate its elements by one index from right to left.

Problem statement

Implement a function fn rotate_array(arr: &mut[i32]) -> &[i32], which takes a mutable reference to an array arr and ...

Access this course and 1400+ top-rated courses and projects.