Beta

Planning a city quarantine

Description
Loading description...
Graph Theory
Performance
Algorithms
  • Please sign in or sign up to leave a comment.
  • Voile Avatar

    Random tests are too weak: incorrect solutions like this can still pass after repeated submissions.

    At least the number of random tests should be bumped up, or more difficult random test cases should be generated.

  • Voile Avatar

    Test fixture needs fixing (sample tests have this error too):

    /workspace/default/tests.py:257: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
    Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
      inp = np.array(inp, dtype=np.bool)
    /workspace/default/tests.py:129: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
    Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
      inp = np.array(inp, dtype=np.bool)
    /workspace/default/tests.py:180: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
    Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
      result = np.zeros(shape=(rn, cn), dtype=np.bool)
    /workspace/default/tests.py:190: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
    Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
      res = np.array(res, dtype=np.bool)
    

    This is blocking the kata from being updated to Python 3.11.

  • Blind4Basics Avatar

    the initial solution is passing the sample tests. Meaning they are useless to the user... ;o

    and is that normal that I get only white rectangles for every input/output??

  • user9644768 Avatar

    Input and output looks almost the same, I don't know what I am supposed to do. Can you clarify more on this point?