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.
Better to use
.count('r')
once and store in a variable.Ok fine. I'll update the constraints and also re-edit the description.
Read the description carefully. Is
7
even?Happy to help :)
See Goldbach's conjecture says
every even number greater than 2 ....
15 is a odd number.Thanks for letting me know about the test cases and yea I found those duplicates later in kata search.
This comment is hidden because it contains spoiler information about the solution
Only case when
generate(length)
function returns1
is whenlength = 1
. Is it asking that to be zero? @gabrielsiedlergenerate(0)
should be 0 right? But it says0 should equal 1