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.
Thank you for the translation
Oh, see the way you did it, its the same. My bad.
My setting of the big random tests is: 50 tests, from 51 to 100, 1 test for each length. Not a big deal.
Otherwise the translation looks good for me.
I defined the
Letter with Head/Tail
, and you need to count how many possible ways to get at least oneLetter with Head/Tail
from the given string without overlap.I don't know how you get 6, from which example.
But not giving how it would be misinterpreted, I cannot debug it. If it is an issue of misleading description, please give me specific and raise another issue.
The first:
(XOOO)XXO
was counted already, it is the third item under 1 Letter with Tail/HeadThe second:
XO(OOXX)O
didn't match with the definition, 2O
s followed by 2X
s didn't fall under any of the 4 categories.Random tests, you are comparing reverse_sum(n) against reverse_sum(n), so it is useless.
Is there any particular reason to add these tests?
More performance or some other reason?
change the way counting length, should be fixed now.
Approved by someone else.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
My solution sometimes time out, I just attempt enough times and it passed.
From the description, the example actually has infinity solutions.
When the number becomes 4,
4 + 4%4
is still 4, so I can do the 3rd instruction any amount of time I want.My estimation as author is
6 kyu
, but apparently it doesn't mean anything other than an suggestion.For some reason, it sent 2 messages...
Loading more items...