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 code works but you get a timeout error when submitting to random tests, then focus on how you test for prime membership.
This comment is hidden because it contains spoiler information about the solution
Oh ok. I think I get it now.
This comment is hidden because it contains spoiler information about the solution
When I run the test for arr = [0, 2, 0, 0, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0] my solution returns 2 where the result says "ERROR: 2 should equal 0" I'm confued. Wouldn't the array have 2 sequences of plentiful zeros?
Apologies! You're right. Thank you.
Oh! Thanks!
In the example, why is the 'ry' pair listed with the r first when the y comes before r in "hide my beers" ? Shouldn't it be 'yr' ?
you say: "The pairs of substitution should be ordered by the first letter of substitution"
This comment is hidden because it contains spoiler information about the solution
I have the same issue as alexona:
Array: [4, 25, 5, 11, 4]
[{'total perm': 120}, {'total ssc': 17640}, {'max ssc': 196}, {'min ssc': 98}] should equal [{'total perm': 60}, {'total ssc': 8820}, {'max ssc': 196}, {'min ssc': 98}]
This has to be wrong because a list with 5 elements will have 5 factorial (5!) permuations (120 permutations) and not 60
Please help. Thanks!
I passed all the tests but I get a "Memory Error" that is stopping me from completing the kata. and I don't know what that means.
This comment is hidden because it contains spoiler information about the solution