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.
they have the 'expected' and 'actual' values backwards.. it wants "hello world" (no exclamation point).
sheep is the plural form of sheep. consider changing it to this instead of 'sheeps'
The default test case has this line:
Assert.AreEqual("Team 1 wins!", Kata.tug_o_war(new int[2,5] { {1,2,3,4,6}, {5,4,3,2,1} } ));
which is invalid. the line needs to be
Assert.AreEqual("Team 1 wins!", Kata.tug_o_war(new int[2,5] { new int[]{1,2,3,4,6}, new int[]{5,4,3,2,1} } ));
Marked as major because the tests fail to run due to this even if the users code is valid.
Thank you for catching that, I have updated the test case.
You could also look into converting the number into real binary first :) and trying to find a pattern on converting that to 'negabinary'.
that said, most solutions haven't done it that way, but it is a possible route.
I would suggest that you leave the ~ operator in the challenge. The issue of user input could be solved like this:
interpret(befungeProgram,['a','b','c']);
with the array in the 2nd param being used to feed the user inputs when needed.
This was probably the most fun Kata I've done yet! Thank you for the challenge :)
The example shows a string parameter being passed into the method, however they are really passing date objects.
The example needs to be updated properly so we can know to use the date methods and not assume a string is being passed in.
This comment is hidden because it contains spoiler information about the solution
The fact that it's asking for left padded result should imply a string, you can't have a left padded integer, it would just be the original value.
I think the instructions are perfectly clear.