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.
«If the goalkeeper is at position 0 and the ball is to the left of the goalkeeper, the goalkeeper should remain at position 0. Similarly, if the goalkeeper is at position 10 and the ball is to the right of the goalkeeper, the goalkeeper should remain at position 10.»
Such cases don't ever get proposed by tests.
Description should be language-agnostic
No random tests
We already have tons of conditional statement based katas such as 1 and more...
Cheers
Changing the user's function definition to
const
:'Means the overall setup is wrong (and explain why anything is passing: you're testing the ref solution against itself)
This comment is hidden because it contains spoiler information about the solution