Hi, I’m trying to solve the challenge but it’s a little bit unclear how I should provide the result of the algorithm, since the function has void as a return type. Whatever I assign to arr variable does nothing, the tests always fail because the output of my program matches the input, even when I overwrite the arr variable with an empty array. (please notice that I haven’t seen the solution section yet since I want to solve it myself).
Course: https://www.educative.io/courses/data-structures-interviews-cs
Lesson: Challenge 8: Right Rotate an Array by One - Data Structures for Coding Interviews in C#