Ad
  • Custom User Avatar

    added

  • Custom User Avatar

    Then let's improve test cases, so that other users won't have to go through this ordeal.

  • Custom User Avatar

    That can still refer to either those neighbours or the target room.

  • Custom User Avatar

    I'm sorry my kata's bore you. I'll try to do better next time.

  • Custom User Avatar

    I'm just going to draw a visualisation in the description of this 3th rule, to remove any ambigouty.

  • Custom User Avatar

    Oh, I see. That's right.

  • Custom User Avatar

    Yes, but one could sort numerical or string-based and you'd only find out on submit.

  • Custom User Avatar

    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."

  • Custom User Avatar

    You are right, this is a good test of the ordering of results. Working on it.

  • Custom User Avatar

    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!

  • Custom User Avatar

    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.

  • Custom User Avatar

    4D starts lights off, not in sight (value 0)

    Uh 4E, where did you get that from?

    expected [ '1B', '3B', '3E' ] to deeply equal [ '1B', '3B', '3E', '4D' ]
    
  • Custom User Avatar

    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.

  • Custom User Avatar
    • Ok I'll think about how te rephrase this in a clear and concise enough way.
    • EDIT: updated to -> At least two neighbouring apartments toggled lights four or more times during the night, while the occupant of the apartment in question wasn't consistently visible through the window that night
  • Custom User Avatar
    • You are right about the inconsistent use of "present" and "visible". I should not talk about "Person present", instead I should mention "Person in sight". I'll change description.
    • About "who is the occupant" .. I think it should be clear that I mentioned "At least two neighbouring apartments", so the occupant is the one with neighbouring apartments.
  • Loading more items...