Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    ...? Afaik, no.

  • 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

    I have my ways to fall into every possible missing fixed test/trap... That doesn't help...

  • 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'd tend to think this is also an issue about missing fixed tests (problem was with roomGetter with s[0] kind of stuff).

  • Custom User Avatar

    oh... I see what the problem is...

  • Custom User Avatar

    just say "the suspicious room should have its occupant not always in sight". No need for a drawing, just an unambiguous sentence.

  • Custom User Avatar

    Seriously it became boring. I won't even search for it.

    [[0,0,0,1,1],[0,0,0,0,0],[1,0,0,1,0],[0,0,3,0,0],[0,1,0,0,0],[0,0,0,0,0],[0,0,0,0,1],[0,1,0,3,0],[0,3,0,0,1],[0,1,0,1,1],[3,0,0,0,0],[0,1,0,0,0],[3,1,0,0,0]]
    
    Observations:
    [["6C",1],["9D",3],["12C",2],["2E",1],["3E",1],["8A",1],["12A",1],["4A",3],["11D",2],["2C",2],["5E",3],["13A",1],["5E",2],["1A",0],["4C",2],["1D",1],["4B",2],["10E",1]]
    
    : expected [ '2C', '3A', '4C', '5B', '6D', '10C' ] to deeply equal [ '2C', '3A', '4C', '5B', '6D', '10C', '12C' ]
    
    -------------------------------
    
    [[0,0,0,3,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,1,3,3,0,0,0],[1,0,0,0,2,0,0,0,0,0,0,0,0,0,0],[0,0,1,0,0,1,0,0,0,0,0,0,0,0,0],[0,0,1,0,0,0,0,0,0,0,0,0,0,0,1],[0,3,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,3,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,1,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,3,0,0,3,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]]
    
    Observations:
    [["6C",1],["6C",0],["6C",1],["6C",0],["6C",1],["6A",1],["6A",0],["6A",1],["6A",0],["6A",1],["5B",1],["5B",0],["5B",1],["5B",0],["10I",1],["5B",1],["7B",2],["7B",0],["8I",3],["7B",1],["14E",1],["9D",1],["2C",2],["10I",2],["6G",1],["14O",3],["7B",0],["9G",1],["1G",1],["7B",1],["6B",2]]
    
    : expected [ '3E', '3H', '5A', '5C', '6B', '8D', '9B', '12E', '13K', '13L', '14D' ] to deeply equal [ '2C', '3E', '3H', '5A', '5C', '6B', '8D', '9B', '12E', '13K', '13L', '14D' ]
    
    -------------------------------
    
    Block:
    [[0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,1,0,1,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0],[0,0,0,0,1,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,1,1,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,1,0,0,0,1,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,3],[0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,1,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,1,3,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0]]
    
    Observations:
    [["17N",1],["11F",2],["16F",2],["11J",3],["8G",2],["14A",1],["11E",3],["9K",1],["2C",2]]
    
    : expected [ '2C', '2D', '2M', '6N', '8G' ] to deeply equal [ '2C', '2M', '6N', '8G', '11F', '16F' ]
    
    -------------------------------
    
    Block:
    [[0,0,0,0,1,0,0,0,0,0,0,3,1,1,1],[0,1,0,0,1,0,0,1,0,0,1,0,0,0,0],[1,3,0,0,2,3,0,0,1,3,0,0,0,0,0],[0,0,1,0,0,0,0,2,0,0,0,0,0,3,0],[0,0,0,0,0,0,0,0,0,0,3,0,0,0,0],[0,1,0,0,0,0,0,1,2,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,1,0,0,0,1,0,0],[0,0,0,0,0,3,0,0,3,0,0,0,0,0,0],[0,0,1,0,2,3,1,3,0,0,3,0,0,1,0],[0,0,0,3,0,1,0,0,1,0,0,0,0,0,0],[3,0,0,0,0,0,0,0,0,3,0,0,0,0,0],[0,0,1,0,0,3,0,0,1,0,0,0,1,3,0],[1,0,0,0,0,3,0,0,0,0,0,1,0,1,0],[3,0,1,0,1,0,0,3,0,3,0,1,0,0,0]]
    
    Observations:
    [["6J",3],["13J",1],["5E",3],["14M",0],["10O",1],["9G",1],["2F",0],["7N",2],["10O",1],["7C",3],["4B",1],["3G",3],["7H",1],["6C",2],["12A",0],["5N",1],["6C",3],["3G",1],["10B",2],["7B",2],["12A",2],["1M",2],["2M",3],["2D",2],["3D",1],["9O",1],["1J",2],["12F",0],["2K",2],["14G",1],["9K",3],["4L",2],["5I",2],["12D",2],["4O",1],["3C",2],["6M",1],["9M",2]]
    
    : expected [ '1A', '1H', '1M', '2D', '2K', '3F', '4A', '4J', '4L', '5D', '6E', '6F', '6H', '6K', '7B', '7F', '7I', '7N', '9I', '9M', '10K', '11H', '11N', '12B', '12E', '12F', '12J', '14L' ] to deeply equal [ '1A', '1H', '1M', '2D', '2K', '3F', '3N', '4A', '4J', '4L', '5D', '6E', '6F', '6H', '6K', '7B', '7F', '7I', '7N', '9I', '9M', '10B', '10K', '11H', '11N', '12B', '12D', '12E', '12J', '14L' ]
    

    And I even got a timeout on one batch (I suspect it's the generatorbut maybe it's a server artifact, dunno)

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

  • Loading more items...