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.
Not an issue. The string length is the same, but using diagonals, the path length is bigger.
That's exactly what the specification is saying, though:
That doesn't matter. Just passing the test matters.
Your solution has a bug, it fails following test case:
[TestCase(new [] {2, 1, 2}, ExpectedResult = 1)]
.While you are right that not presenting inputs is not a good thing, you can still
Console.WriteLine
them yourself. You owuld see that your solution fails for arrays where the unique number is on the second position.Bugs in your solution are not a kata issue.