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.
In C, test generates a warning
Can anyone explain why this works?
I liked how this kata makes you think in terms of walking through the list step by step instead of relying on shortcuts. It’s simple on the surface, but it really reinforces careful iteration and condition checking. Problems like this are great for building intuition with linked structures, so thanks for putting it together — it was a nice, focused exercise.
15is not valid because the description tells you:-51 is less than 15
you should fix the description
but thats was fun
added changes to the reference solution
fork dart
i did like that
Lots of solutions are invalid because they have a signature with
Ints instead ofIntegers; apparently this was changed at some point. Is it worth it to allow both? It doesn't really affect the logic.thank you
reference solution replaced with
O(n)solutionMerged.
Haskell translation does not show actual input list on failed random tests.
Fork that fixes this as well as improving the random tests by adding test shrinking.
@perkee This is a problem with how the test suite is being used, not the tests themselves. The error messages are showing a pre-processed list, while your solution is tested against a post-processed list. I'm submitting a fork that should fix this.
Haskell has a problem with random tests. The random tests expect incorrect things, but you can just retry submitting until you get a pass. Following example is real, but I clipped it for length.
This array is not sorted and should not expect "yes, ascending."
Loading more items...