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.
Add constraint in desctiption. Thank for you reviews
Bounds of
n
should be specified in the description. Current bounds are$1 \le n \le 10^6$
.Add random tests. Thank for you reviews
"Random tests" are not random.
https://docs.codewars.com/authoring/guidelines/submission-tests#random-tests
good kata, but random tests needed.
No random test. This is not kata. Hate it