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.
... furthermore, why in the world is each string in
TABLE
inside alist
?Yep, I think now it's definitely clear. Thanks. :)
I get it. Since observations are chronological, it could be interpreted that visibility of the occupant should only be checked between toggles. I edited the description to make it clear both the toggling, and visibility should be checked during the entire night. So these events are independent from eachother. Let's not make this kata any harder than it should be ;)
The way I read it initially was that I should count the toggles in the neighbour apartment only if in that particular moment the occupant is not there.
So like, checking if B2 is suspicious: (B1 0), (B1 1) -> I count these toggles. Now if (B2 3) comes, someone is there in B2, so if after that (B1 0) comes, I thought I should ignore this toggle, until B2 becomes 0 or 1, so until the person leaves. I thought this because of the "while the occupant wasn't consistently visible". I understood that this is not the case from the tests. It's much more, "if there is at least one moment in the entire night when the occupant leaves/is not seen". But it could be my bad english that didn't help to understand it better. :DDo you think I should rephrase that last condition in some way?
Nice kata! :D At first the last condition was a bit difficult to understand, but the examples helped a lot. Really a new and nice idea, it was fun. :)
Thank you, typos have been addressed.
Excellent kata, as always!
- A couple of typos in the text for the sample tests:
definately
=>definitely
&appartment
=>apartment
hey, could u please write a short feedback on what should be modified/fixed/removed
Should a cheesy solution like mine pass?
just you wait and see...
JS: Default problem of
twoOldestAges
the code isC#: Tests of a random nature there are not
I'm in the same boat. I'm pretty sure I have the right formula but only pass around 30 large tests.
High 5 :D
Loading more items...