This comment is hidden because it contains spoiler information about the solution
I made a clear message when that happens.
That means you didn't mail anything, I think.
thx bro, its working now
I always fail on random test:
IN: 43165 16356 66821 93880 26906 34063 16352 740758893 11781024 0 -105095319 32687 18 0 (len=14)
n = 13 (repat "n" times)
Incorrect array size
Expected: 4 Submitted: 1
What value is expected to be 4? "so" ? how?
Hmmm... I finally beat it but definitelly don't like it...
Hint for others: MEMOIZATION - you cannot do it without caching results somehow, this should be in task description.
I wasn't probably only one who was disapointed because (at least) 3 solutions has pre-computed list directly in source code.
I guess this kata is broken...
Exception: PHPMailerTest::deepCompare() cannot compare objects!
on first (warump) test... I have no idea what to do with this message
@Voile same situation is in Haskell... just saying... :)
Thanks for pointing that out.. I rewrote the instructions a number of times and may have taken out reminders in an attempt to reduce the length of the desc. I've added a reminder that 3's the max.
Any chance you could change your downvote? ;)
thx, now I understand... I miss infomation about hitting max 3 other creatures... but this is mentioned only once ABOVE the instructions... its not clear: It looks like info about three targets is related to Heroes of Might & Magic Games, not this kata
Why do you even consider the last row? The lightning does not reach those units.
Not an issue. You're missing the second -5 which is less than 10.