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.
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.
Answer is modulo 12345787.
There are dynamic problems of same difficulty at 6 kyu and some that are way harder at 5 kyu, good problem nonetheless.
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.
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"