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.
thanks
Your explanation here would be a good start: "you need to count how many possible ways to get at least one
Letter with Head/Tail
(from the input string)". I see six of the phrase you emphasised throughout the questionLetter with Head/Tail
in the result. "Total Possible Amount" is not defined well.Ah, got it! I misread the second group and thought there are OO followed by 1 or more X (and vice versa with XX in the beginning).
Thank you for the translation
Oh, see the way you did it, its the same. My bad.
Is my setting for big random tests any different from yours?
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.Considering the example shown: 'XOOOXXO'
Shouldn't it count 4 Letter with Tails/Heads as well?
(XOOO)XXO, XO(OOXX)O
Which would increase the number of combinations from 26 to 28?
Another incomprehensible puzzle. I count 6 'total amount' whatever that means as two different things are being explained and a third is being shown.
That is really silly then. This should be on mathwars.com, not codewars.com.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Took me a minute to understand the question, but the test values helped. The values are:
So for example if the values were
n = 1, m = 100
, the answer would be 100. Just start droppingyour one egg at floor 1 and continue up until it either breaks or you run out of tries. So you can
give the exact number for any floor up to 100. The actual floor might be 2000, but you can only verify up
to 100 with one egg. If you start on any other number, for example floor 2, the egg might break. Then
you know that floor 2 isn't safe, but you aren't sure if floor 1 is safe or not, so you can't
give a correct answer.