Ad
  • Default User Avatar

    When clicking "test" figures start with '\n', but they don't when clicking "attempt". Even if they are the exact same in every other aspects.
    It's a bit inconsistant.

  • Default User Avatar

    Answer is modulo 12345787.

  • Default User Avatar

    There are dynamic problems of same difficulty at 6 kyu and some that are way harder at 5 kyu, good problem nonetheless.

  • Default User Avatar

    Try this one maybe:

    https://www.codewars.com/kata/5e297e9f63f1db003317cbac

    The same kind of reasoning is needed to solve it (Dynamic Programming), but maybe this problem is a bit easier.

    I think that the difference of difficulty between them is not that large, but it's 6 kyu instead of 4, so we'll trust the website's ranking.

  • Default User Avatar

    For some reason in NASM if you return the wrong answer (anything but 0) when the array is empty, you get a segfault. (Even if your code does not produce the segfault)

    In the other cases you get a proper error message "Actual*: Y Expected: X"