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.
It should be noted that in the detail, m > 2.
Thank you for your attention.I also had this issue.
This fails with gap(2, 2, 6), should be null and returns [0,2].
Also @lindaxiao-hust said also fails with gap(3, 3, 4) should be null and returns [0,3]
beautiful, elegant and performant. My sol is straight up embarassing.
awesome!
No need to go through the whole range [m, n] either, since after 2 only odd numbers can be prime.
Aaaaaa thanks a lot for the explanation!
For better performance.
To check if 25 is prime or not, you only have to check if 25 can be divided by 2,3,4,5. 5 (is sqrt(25)).
Beautiful
It means your function is printing the result instead of returning it.
Test Results:
Log
foo1
None should equal 'foo1'
what does this error mean since the results was foo1
This comment is hidden because it contains spoiler information about the solution
Please read the last bullet point in this paragraph of FAQ.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...