Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Maybe you miss out the following description:
choosing a single number and moving it some number of positions to the left.
You can't move number to the right.
Your example is too long, I tried your solution and found a way shorter example.
Given
a = [3, 2, 1]
andb = [2, 1, 3]
. Your solution returns 1, but obviously the correct answer is 2.This kata is Python only at the moment I'm writing.
Given some users already found the correct solution, there is an issue in your solution, not in referee solution.
This comment is hidden because it contains spoiler information about the solution
Why? Design an example which this code will fail.
Approved, thanks