Assignment 1 - test case 2 vs test case 5

Test case 2: # A list that wasn’t rotated at all.
Test case 5: # A list that was rotated n times, where n is the size of the list

It should be the same input list of integers, isn’t it?

test2 = {
‘input’: {
‘nums’: [3, 5, 6, 7, 9, 11, 14, 19]
},
‘output’: 0
}

test5 = {
‘input’: {
‘nums’: [3, 5, 6, 7, 9, 11, 14, 19]
},
‘output’: 8
}

Therefore, it’s not possible to pass both cases. Either test2 or test5 can be passed. If anyone has ideas please suggest me. I’m stuck with it now

https://jovian.ai/forum/t/how-to-get-the-difference-between-0-times-rotated-array-and-n-times-rotated-array-where-n-is-length-of-array/28333

1 Like