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.
OP solved it, closing
'every sequence'
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.
Both conditions should be met to consider the array zero-plentiful, and your code would fail in this case too:
[1,0,0,0,0,0,0,0,0,1]
there is only one sequence there.This comment is hidden because it contains spoiler information about the solution
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!
Please solve first GA-DE-RY-PO-LU-KI cypher vol 1 and GA-DE-RY-PO-LU-KI cypher vol 2. It will be easier for you to understand what the cypher is and how it works.
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"
Since you can print the input, check with specific test is failing.
This comment is hidden because it contains spoiler information about the solution
Loading more items...