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.
Random tests in Haskell only test inputs up to 100. I've made a fork that updates the random inputs to match the description (values up to 500,000)
Java translation
Haskell translation
Description has also been updated to clarify that indexing is 1-based.
Rust translation
C translation (author inactive)
This is a backport of the C translation for the master level of this kata.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Python:
test.expect
is used in test section(Useful assertion messages should also be added in the meantime)
Typescript translation
CoffeeScript translation
Lua translation!
This comment is hidden because it contains spoiler information about the solution
Erlang Translation ready for review.
Perl Translation
Why on earth is the Python version asking to write a function which serves as a constructor for a class?
Loading more items...