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.
added
Then let's improve test cases, so that other users won't have to go through this ordeal.
That can still refer to either those neighbours or the target room.
I'm sorry my kata's bore you. I'll try to do better next time.
I'm just going to draw a visualisation in the description of this 3th rule, to remove any ambigouty.
Oh, I see. That's right.
Yes, but one could sort numerical or string-based and you'd only find out on submit.
But the description says "Output: A list of strings representing "suspicious" apartments in the format room number based on the criteria outlined below, ordered by ascending room number."
You are right, this is a good test of the ordering of results. Working on it.
ok Ciprian's suggestion is the best I can think of, with examples included. Unless people start thinking this only applies to these 3 fixed apartment xD. What kind of rabbit hole did we dive into!
At least two neighbouring apartments toggled lights four or more times during the night(4C and 4E), while the occupant(4D) of the apartment in question wasn't consistently in sight that night.
4D starts lights off, not in sight (value 0)
Uh 4E, where did you get that from?
Bur for choosing 4D as suspicious, the two neighbours (in this case 4E and 4C) don't have to be suspicious. They just need to toggle lights at least 4 times. The occupant refers to 4D, not to 4E and 4C.
Loading more items...