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 your solution loops 1_000_000 times while it could loop only 1_000 times, I would not call it correct even if it returns expected results.
If your solution loops 1_000_000 times while it could loop only 1 time, it's even more incorrect in my opinion.
Additionally, all what you need to make it correct is to modify one place and add one call to a function which you learn in school, so, in my opinion, it's still in scope of this kyu.
My mistake is that I did not put the range in description or sample tests, so currently user timeouts only on full attempt. This is my bad, and I am going to fix this.
Hi @Agboola O.D., please remember to always use the spoiler tag when posting code. (I have added the tag) When you click ATTEMPT, there are usually more extensive tests, including random tests. If the solution is correct but still times out, you'll need to optimize the solution further.
This comment is hidden because it contains spoiler information about the solution
n
, norn/2
, norn/4
, nor...I plan on adding more information on range of tested numbers to the description, so it would be known from beginning.
This comment is hidden because it contains spoiler information about the solution