Ad
  • Custom User Avatar

    sorry you didnt like it. maybe do a different one. definitely don't leave an unnecessarily rude comment though.

  • Custom User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

    Seems to work now

  • Custom User Avatar

    It has been fixed now. There will be no more random cases in C# with "-1" as the coeficent. It will show "-".

  • Custom User Avatar

    What language were you using? C#? It states in the description that if a = -1 a '-' will be placed, so this shouldn't happen. I will look at it.

  • Custom User Avatar

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

  • Custom User Avatar

    I disagree. Why do you think so?

  • Custom User Avatar

    Perhaps failing the test and printing something out will help that.

  • Custom User Avatar

    Yes,but it would be less confusing if when someone does try to modify it, as it seems from the discourse that lots of people do, the test script should either suggest to make sure the array is not modified or fail the test in which the array was modified. The function's execution in one test should not affect the input that is given to later tests, regardless of whether or not the description was read carefully.

  • Custom User Avatar

    Modifying the array input causes the input for later test cases to not be what is expected for several of the tests. While it may be bad practice to destructively modify array inputs within a function, the test cases should be written so that it does not cause the test script to fail. This is still a really fun kata though. Thanks for making it.

  • Custom User Avatar

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

  • Custom User Avatar

    Most solutions use string math. They simply write an algorithm that multiplies numbers the same way you would do it by hand.

  • Custom User Avatar

    My python skills are lacking but I've been meaning to learn for a while now. I'll see what I can do. Check back in a few days.

  • Custom User Avatar

    Thank you for pointing that out. The function now gets passed a copy of the array instead of the array itself. Problem solved.

  • Loading more items...