Ad
  • Custom User Avatar

    Yes, you have to check for non-integer values in the input, and since bool is a subclass of int, you have to test explicitly for their presence.

  • Custom User Avatar

    This seemed really straightforward. But I can't get past this test-case failure:

    "Invalid value types (boolean): True should equal False"

    Does this mean that there are boolean values in the input data? I'm comparing the sets of cells in rows, cols, and the root-n * root-n blocks with set(i for i in range(1, n + 1)) so I don't see how that can prevent this from passing???

  • Custom User Avatar

    I think it is because of the escape sequence, but I don't know what their intention is here. The sequence is for '§'. I got round this by allowing comment markers of more than one character ("\xc2\xa7" has 8 characters). I guess handling unicode properly would have been another way of doing it. (Python2)

  • Custom User Avatar

    trailing space after "pears"?