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.
It was difficult, but I liked it!
Indentations were not that messed up when I clicked submit, sorry ^^"
Thanks, this was a fun kata, it can be solved with a nice variety of approaches.
@Koolong, thanks for explaining! @benjaminzwhite, next time I will try to phrase my english properly :)
@Kooloog ah thanks for this - I thought @LS2008 was confused about the question/description itself.
@LS2008 - thanks for noticing this! In future you can always post actual logs of the tests that seem to be incorrect/behaving weirdly, that makes it much easier for people to review any eventual errors.
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.
Hi @LS2008 - in all cases/tests the kata is asking you to determine "all the locations where you will be safe". You need to return a
list
of the coordinates where you can stand to avoid any explosion.The tests are always with the mine field before any explosions (because otherwise, the safe locations would already be determined) and therefore it's up to your algorithm to determine which cells will be "reached" by the given mines' explosion pattern, and which cells will not be reached (these are the safe spots!).
So... What does this kata want you to do? In python, the sample cases are before explosing (no 'C's), while in the random sample cases this is after the explosion?
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!
Hi everybody!
Could you please explain why 2:30 can't be in the list of sessions?
Pretty hard for a 7!
Added :)
( JS )
missing
chai.config.truncateThreshold = 0
yup
Alright, I think I understood what you meant now ;)
I computed the expected solution before making the assertion:
Is this correct?
Loading more items...