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'
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
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.
Since you can print the input, check with specific test is failing.
4
is repeated so half of the permutations are repeated.It's a question, not an issue.
It means that you shouldn't try to calculate all the permutations as the test cases are too big.
There is a better approach.