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.
Note that you fixed the example solution as well. If you are going for 7 kyu, a naive implementation of the description should be valid. Now, you don't know that, because you're testing a solution that is better than that.
Haskell translation
Be careful approving translation before your kata is approved!
that should be
< 14
in both cases. also, a line break would be nice ( two spaces at the end of a line will do that for you in MarkDown ). a bullet list would be even nicer.Thanks for the suggestion. I clarified the description to hopefully be mmore clear.
Alright, I fixed it. This is my first kata but I definitely should have created a better solution. It is fixed now to include memoization to make it run faster.
or does Rust have some sort of automagic memoisation and am I talking out of my behind?
This comment is hidden because it contains spoiler information about the solution
An example of the shape of the triangle and of "the next element", "the previous element", and "the element above that" would be nice.
I got a wrong impression from the text initially; "that" in "the element above that" is doing an awful lot of work, but I read it as "it" and got all confused.