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.
Good observation, i hadn't noticed, i made the change
Thanks for solving my hard beta kata's.
This comment is hidden because it contains spoiler information about the solution
Thanks for the feedback. Description edited.
I agree, description edited to mention the non-overlapping constraint. The original description tried to explain that these rectangles have no 3rd dimension property (which is stating the obvious). But it added more confusion than anything else.
That could have worked too, but in my design I wanted the isle to be clear of upgrade packs. I do notice this is not stated in the description. I'll edit the description.
I believe in this case, you should lose 16 health:
I've updated the description accordingly:
8
.4
.So,
AA-
loses 8 health,AAA
loses 16 health andA-A
loses 4 healthThank you for solving this kata!
To answer the second bullet already:
Each enemy in the chain gets half the damage done to ...
This could be interpreted one or two ways. I've added a sample test and a part to the description to avoid confusion:
=> (added to description)
Note that if you deal more damage to an enemy than their health, that enemy is obviously eliminated, and the measured damage is the maximum damage you would have dealt on a strong enemy, regardless of the actual health of the enemy.
see answer as spoiler
This comment is hidden because it contains spoiler information about the solution
The JS version has smaller random tests than the Haskell version, carefully sized to not overflow
MAX_SAFE_INT
.I'm not aching to refactor it when there's not really a problem. ( Even ) Bigger numbers don't really add to the kata; if you can solve it for small numbers, you can solve it for big ones.
Do you think the JS version should also use BigInt instead of Number?
I think I fixed it
To me this looks like invalid input. The state machine ends after (mul), so you should return a - b.
interesting solution ;)
Loading more items...