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 feedback. I appreciate the thought and detail you put into it.
if(zombies==100 and distance==10 and ammo==20)...
the function returns:'You shot 20 zombies before being eaten: overwhelmed.'
Am I wrong in thinking the "reason" was loss of ammo?
there are 20 shots fire. One at each whole second, 1 through 10. One at each half second, 0.5 through 9.5.
So when the zombies arrive, we are out of ammo. Or, does overwhelmed encompass any situation where it is impossible to kill all the zombies even if we had infinite bullets.
remove ;
remove (n==101)+(n>101)
add (n>100)
The description does mention permutations, so perhaps it was my poor reading and comprehension. Nevertheless, I think adding a shorter example to clarify the directions would help.
This comment is hidden because it contains spoiler information about the solution
Wording is confusing. I thought I was looking through the numbers 1 through 10**5 for matches. Instead, we are adding permutations. Adding more clarifying examples might help.
7 --> 7
77 --> 7 + 7 = 14
122 --> 122 + 122 + 212 + 212 + 221 + 221 = 1110
does not work (well) for negative numbers.
E.g., if we have an array [1,2,3,4,6,7,8,15,16] then 6 and 16 are non-consecutive.
16 should be 15
This comment is hidden because it contains spoiler information about the solution
Same.
Instructions updated.
Updated. Thank you.
Thanks for the feedback. As I understand it, there is only one way to cut the pizzas to make them have equal slices. If you have examples where there are multiple ways to create equal slices, please let me know, and I will try to add more explanation to parse those out. I have updated my instructions to avoid any clever pizza cutting, if that is what you had in mind. If it's still unclear, please let me know.
Could someone explain why the third test is one and not two (or 4).