Ad
  • Custom User Avatar

    they have the 'expected' and 'actual' values backwards.. it wants "hello world" (no exclamation point).

  • Custom User Avatar

    sheep is the plural form of sheep. consider changing it to this instead of 'sheeps'

  • Custom User Avatar

    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.

  • Custom User Avatar

    Thank you for catching that, I have updated the test case.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    This was probably the most fun Kata I've done yet! Thank you for the challenge :)

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.