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.
I see, thanks!
This comment is hidden because it contains spoiler information about the solution
Description states:
Your code fails for cases like
[1, 2, 3, 1]
. The expected result is[1, 2, 3, 1]
, but your code outputs[1, 2, 3]
.I personally would name the variables not after you and your opponent but after attacker and defender. It's less ambiguously that way. (My opponent could be my attacker or he could be the one I'm attacking.) Also a nitpick but the 50 is a bit arbitrary and I don't see why that couldn't have been an argument as well.
It doesn't expect a string, actually. It expects Enumerable (as you can see from the solution setup). String and List are both Enumerables. The test has handled it correctly. The reason why in the error it said
Test Failed Expected is <System.String>, actual is <System.Collections.Generic.List`1[System.Char]> with 4 elements Values differ at index [4] Missing: < 'A', ... >
is because in your enumerable results, the value at certain index is different from the expected enumerable. So, the tests has handled this correctly.It looks like that happens only in C# version afaik.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution