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.
Hi, the solution will pass only if you find a way to solve the problem without loops. as wrotes below in the comments inList numbers are sequentially from 1 to n this should help you to solve the problem without loops
So what kind of time should we achieve for the random tests? I get times in the 240 usec range but still fail
This doesn't answer my question. What response time are you expecting to not fail the time test.
You are right. I was able to pass them with your solution and some other I didn't try before from the solutions page. Your reasoning makes sense. Thanks for checking it out sayan warrior.
The tests are not broken. I just passed both Python and Javascript versions, the tests work fine.
It is possible that the kata has been updated which has caused some old solutions to be too slow on the latest language version, but the kata is still quite possible.
!!! TESTS ARE BROKEN !!!
Tried multiple solutions and couldn't get the execution time to be accepted,
INCLUDING the ones from the solutions page after skipping the kata
Tests still failed due to long execution time.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
For correctness. Avoids altering the numbers argument which could impact tests
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
BigInt would make it much easier like a level 7 Kyu. The challenge makes it a level 4.
BigInt is only available with Node 10.4 and we can only use 8.1.3
BigInt would make it much easier like a level 7 Kyu.
BigInt is only available with Node 10.4 and we can only use 8.1.3
Loading more items...