Ad
  • Custom User Avatar

    excellent these test cases are perfect

  • Custom User Avatar

    Greetings, guys! I would like to suggest adding two additional test lines to the tests for this kata.

    In the process of optimizing my C# code, I added my two additional lines of tests and then an incorrect result was given in one or another line of the test, but all codewar's tests always completed successfully. As a result, I corrected the C# code so that my code and in my two additional lines of testing gave the correct result. I think it would be advisable to add my two additional lines to the tests to this kata because some incorrect algorithms are able to successfully pass all the tests.

    Link to my C# solution with comments (SPOILER for those who have not yet solved this kata): https://www.codewars.com/kata/reviews/5d616f61addcfc00010e8bc9/groups/654970081bb8890001104be0

    Two additional lines to add to the tests to this kata:

    { (1, 6), (10, 20), (5, 11) }

    { (10, 20), (1, 6), (5, 11) }