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.
Duplicate.
JS Test Case: Missing describe blocks.
Ruby 3.0 should be enabled.
Python new test framework should be used (Refer this for more detail)
No random tests.
This comment is hidden because it contains spoiler information about the solution
10 random tests are not enough, considering that it's very unlikely to have tests at the lower range (
1 <= n <= 100
) except the three fixed tests.Description is inconsistent with fixed tests:
but
Also, returning mixed data type is a bad practice.
You're putting the reference solution in Preloaded, which means anyone can call it easily.