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.
Indentations were not that messed up when I clicked submit, sorry ^^"
Just checked and random tests did in fact start with the field after the explosions (due to the array being passed as a reference to the sample function which returns the expected result), which could make it easier to cheese this kata. This has now been fixed. What you have to do now is simulate the explosions yourself, and then finding the safe spots.
The kata description states that "The last session in the array cannot end after the cinema closes". The session starting at 2:30 would end after the cinema closes at 3:00, which is why it isn't in the list. Hope this helps!
Added :)
Alright, I think I understood what you meant now ;)
I computed the expected solution before making the assertion:
Is this correct?
Should be fixed now.
Thank you for the tips and letting me know about the "attackable" array! All of your points should be fixed in the new solution and tests :)
Should be fixed now. What was happening was that, in my solution, the explosive charge of some mines could override any mines it crossed in its path. Thanks for letting me know! Publishing the fixed solution real quick.
I'll look into that in a moment and let you know when it's fixed :)
Added
Fixed, plus added a few random tests testing these edge cases :)
Done. Did not know how to do that, thanks!
Ignore this. It's the sample code and didn't think it'd be posted. Go to the Python solution instead lol
Ignore the JavaScript code, I didn't know that'd be posted lol. I made the tests and sample solution in Python.
It's my first kata, be merciful please :')
I thought this wouldn't submit, please add the ability to delete own solutions or have an admin delete this for me please. I didn't even come up with this solution, I just wanted to have it removed from my Unfinished list considering I gave up