Ad
  • Custom User Avatar

    Thought I would post this here for anyone to check out:

    Test #23: Your solution succeeded where the original didn't.
    Might be that yours is smarter... Or you made a wrong (but successful) guess somewhere ?
    Please post a comment in the discourse about that, providing the information below:
     
    FAILED TEST !
     
    Number of mines: 9
    Original map (not necessarily the expected one !):
    0 0 1 1 1
    0 0 1 x 1
    1 1 2 2 2
    x 1 1 x 1
    1 1 1 1 1
    1 1 1 0 0
    1 x 1 1 1
    1 1 2 2 x
    0 0 1 x 2
    0 0 1 1 1
    0 0 0 0 0
    0 0 0 0 0
    0 0 0 0 0
    1 1 1 0 0
    1 x 1 0 0
    1 2 2 1 0
    1 2 x 1 0
    1 x 2 1 0
     
    Game map:
    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
     
    Your answer:
    0 0 1 1 1
    0 0 1 x 1
    1 1 2 2 2
    x 1 1 x 1
    1 1 1 1 1
    1 1 1 0 0
    1 x 1 1 1
    1 1 2 2 x
    0 0 1 x 2
    0 0 1 1 1
    0 0 0 0 0
    0 0 0 0 0
    0 0 0 0 0
    1 1 1 0 0
    1 x 1 0 0
    1 2 2 1 0
    1 2 x 1 0
    1 x 2 1 0
    
    Expected:
    ?
    
  • Custom User Avatar

    The examples in the description and sample tests only contain increasing times, but this is not a condition of the problem. It would be nice if an example with unsorted times was added.

  • Custom User Avatar

    very good kata!

  • Custom User Avatar

    in JS message like

    Testing for:
    pros = ["pros-1","pros-2","pros-3","pros-4","pros-5","pros-7","pros-8","pros-10"]
    preferences = [["Code progammer","Computer repair","Cook","Data recovery service","Haircut","Handyman","House cleaning","Pet care","President"],["Code progammer","Cook","Haircut","Handyman","House cleaning","President"],["Computer lessons","Computer repair","Cook","Data recovery service","Handyman","President"],["Computer repair","Data recovery service","Haircut","Handyman","Pet care","President"],["Code progammer","Computer repair","Cook","Data recovery service","Handyman","House cleaning","Pet care","President"],["Code progammer","Cook","Data recovery service","Haircut","Handyman","Pet care","President"],["Computer lessons","Pet care"],["Computer repair"]]: expected [ …(10) ] to deeply equal [ …(10) ]
    

    isn't very useful. I see the input but almost no information about expected answer.
    That's in Random tests

  • Custom User Avatar

    Took longer than it should. Have a blessed day... NOT

  • Custom User Avatar

    🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀🥀

  • Custom User Avatar

    The answer is written in two examples - look carefully

  • Custom User Avatar

    C# tests generate warnings

    tests/Fixture.cs(110,17): warning CS0219: The variable 'passed' is assigned but its value is never used

  • Custom User Avatar

    Sorry, cannot understand "Squeeze them from the left and right sides to the middle, until the characters of some lines come together"
    As in testcase 2 line 1 has no spaces in both parts , so both parts are already together, and we don't need to move them!
    left = """
    II
    LLL
    oooo
    vvvvv
    eeeeee
    YYYYYYY
    oooooooo
    uuuuuuuuu"""
    right = """
    IIIIIIII
    LLLLLLL
    oooooo
    vvvvv
    eeee
    YYY
    oo
    u"""
    But the test demands to squeeze all other strings, eliminating spaces before sccond parts....

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    Why not add m<=n to the description? It's a bit lame to implement a swap of arguments for a 7 Kyu kata.

  • Custom User Avatar
  • Custom User Avatar
    • Python fixed in this fork
      (16 --> 80 out of 384 solutions invalidated)

    • Ruby fixed in this fork
      (5 --> 14 out of 63 solutions invalidated)

    • JavaScript edge cases added in this fork + edit due to assert.deepEqual failing to compare +0 & -0
      (0 --> 105 out of 493 solutions invalidated)

    • Haskell edge cases added directly in the edit window
      (0 --> 5 out of 39 solutions invalidated)

  • Custom User Avatar

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

  • Loading more items...