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.
grah
Thank you!
Took a while to come to an approach like that.
Fixed
This comment is hidden because it contains spoiler information about the solution
Closing.
added
because it's only a small variation of the original version
hi,
pentadecatridecanylnonadecane
is incorrect, butpentadecatridecylnonadecane
could be, to the condition to had all the required positions. Now I get your question: no, you cannot havean
in a ramification (except for the...anoyloxy
thing).Do you still want this test to be added? ( ->
C214H430
)Timestamps of solutions are recorded, but are not displayed anywhere.
There's a related feature request here: https://github.com/codewars/codewars.com/issues/2148 /
Well, I'm asking 3 years old question
This comment is hidden because it contains spoiler information about the solution
The tests seem to be OK. As written above, you might have a float vs. int issue, depending on the python version you used.
If you eat 2 cakes on the first move, your opponent can not eat 2 on the second move.
Thanks (and don't forget to upvote me :p): I think that with so much time spent doing test, it becomes kinda of a habit to prepare your code for edge test cases, no matter what.
I still have to figure out if that is a mostly positive thing or not ;)
I think your int-str conversion is useless.
What
filter
does is filtering out the items which do not satisfy the prerequisite(thelambda
) ina
.The process is:
filter
picks the items ina
one by one and tests them by thelambda
expression.Each time,
lambda
accepts one item and returns a boolean value,filter
will keeps down the item iflambda
returns True or drops it while False.The items returned from
filter
are picked froma
directly(but not returned bylambda
) and thelambda
expression should always returns boolean value.Loading more items...