Assignment 1 - Test Case Outputs

**

I have a doubt about the test cases output section.

**

1. What should be the output for the list that hasn’t rotated at all?
My view is it should be 0.

2. But, when I consider a list that has rotated “n” times, where n is the length of the list. What should be the output of the list? Is it 0 or 9?
My view is It should be 9, but it contradicts the above case.

3. The same goes with the list rotated once and “n-1” times. What should be the output then?
Is it 1 or n-1

And also,
What value should I give to the initial position?

obraz

1 Like