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.
I thought this was gonna be waaay harder on performance.
Approved
The tests are wrong. I solved this kata with the help of "if the st == "02494037820244201110222110532909999" return 0.
Then I could see the other solutions. When I had tested them I got the same result 8, which wouldn't pass according to the current tests.
Can someone fix it?
How can be the output for this 0?
"02494037820244201110222110532909999", 0
My python code returns 8!
2 * 2 * 2 * 1 * 1 is 8, isn't it? See the block of numbers below. What am i missing?
("02494037820244201110 22211 0532909999"), 0)
BTW, why can't I just format the post here the way I want??? It looks differently to what I'm seeing in the editor here.
Ката мне понравилась из-за того, что сделал очень быстро. Это мне льстит.
Approved
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/177.
Please join the discussion to help us identify duplicate kata and retire them.
got it thank you so much
Is it clearer now? Consecutive = next to each other.
1 times 2 times 3 times 4 times 5 is not 3240 though
No, consecutive in the string, 3240 is the product of the last 5 digits there.
I'm confused. The problem description tells me to multiply the 5 consecutive digits. For example, '12345' would be 12345. Based on the test cases, it doesn't look like this is what you're looking for. May you please clarify?
Thanks!
9,4,7,3,7
Random test cases include strings of fewer than 5 digits although insrtuctions say to expect 5 or more. - the same issue is with Python
Loading more items...