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.
Ruby:
random tests => duplicate issue, (but only in js) see below, thanks
test added to all languages
No random tests and the solution below may pass but not fit the problem description:
https://www.codewars.com/kata/reviews/5e0e15bd4225f300010c2a9f/groups/5e0eb5644ebc200001b5d8fc
Note that the solution is Wrong! Just consider the input below: