Ad
  • Custom User Avatar

    Can you provide the details of your test case? What were the input values?

  • Default User Avatar

    i'm coding in the golang version and i'm sure there's something wrong with one of the tests

    given that the lower bound is 100000 and the upper bound is 12345678900000000, but somehow the answer is only 718650, which from what I calculated is way less then just the total for a 16 upside-down number sum. So, now im also wondering if actual tests are correct or not.

  • Custom User Avatar

    What is the difficulty level of this kata?..

  • Default User Avatar

    That was a really nice kata

    One small suggestion; the description states:

    A player who completes the fourth side of a 1 x 1 box earns one point and takes another turn

    It left me wondering whether completing two boxes at once provided with 2 extra turns or only 1. It turns out it is the latter. Perhaps this could be mentionned ?

  • Custom User Avatar

    Not a big deal as long as edge cases for same total sales are tested

  • Default User Avatar

    C++ translation published

  • Default User Avatar

    In Java's sample tests (sampleTest2) :

    The assertion:

    assertFailPopulate(blobs, invalidGen);
    

    always succeeds because in assertFailPopulate():

    try {
        blobs.populate(genToLstOfMap(gen));
        fail("Invalid elements should trigger a RuntimeException in 'populate'");
    } catch (RuntimeException e) {
        assertTrue(true);
    }
    

    the genToLstOfMap() (which is a tests suite function, not a user function) throws a nullPointerException when called on invalidGen, and nullPointerException is an instance of RuntimeException. So the assertion always succeeds and the user's code is not even called.

  • Default User Avatar

    No, you are forgetting that the blobs can move diagonally (Moore neighbourhood). The blob of size 4 at (4, 3) has 4 potential targets at a Chebyshev distance of 3:

    the blob of size 2 at (2, 0), the blob of size 2 at (5, 6), the blob of size 1 at (7, 2) the blob of size 3 at (7, 0).

    That last one is the chosen target because it is bigger than the others.

  • Default User Avatar

    Java conventionally uses camelCase though, and the code examples from the description make it clear what the method name is.

  • Default User Avatar

    IMHO the kata definitely deserves a dislike. firstly, it is meaningless, I didn’t learn anything new and the solution requires some primitive practical skills, and secondly, I had to waste time passing tests with newline character.👎

  • Default User Avatar

    It took me 30 minutes just to understand this kata :(

  • Custom User Avatar
    • Entry denied: missing required work pass.

    • Passport check case for Ban nations and expiry date

    Above cases are not guaranteed in JS at least (should have fixed tests for that)

  • Custom User Avatar

    I completed this Kata and I must say, it really ilustrates how real life projects are done. Unfortunately, that means that it is tedious and you encounter a lot of errors that you don't know where they come from

  • Default User Avatar

    I wrote a solution which works on IDE, but somehow on random test it have mistake, and when i try that exact problem on IDE, it works perfectly.

  • Custom User Avatar

    Implemented a deterministic solution with complexity O(n^3) in Python. Solves 70-by-70 puzzles in <10s on my laptop.

  • Loading more items...