Ad
  • Custom User Avatar

    This was a fun kata, but I think the description should be changed from this:

    "The purpose of this kata is to find words I can type quickly on this dumb keypad, hence good words. Good words herein have characters that are on the same pad, or vertical opposite the pad, or horizontally opposite the pad."

    to this:

    "The purpose of this kata is to find words I can type quickly on this dumb keypad, hence good words. To be a good word, each key must share the same row or column as the last key."

  • Custom User Avatar

    I really like this kata, thank you! One note - I wish the prompt had any context whatsoever other than don't use BigInt. I'm trying to strengthen my understansing of algos, and I'm down a rabbit hole researching how javascript objects work under the hood and working my way up in inheritence. If this was a little more focused, without giving away too much, it could be super helpful for my learning. I may be going too deep and little doses of understanding and building on that would be better pedogocially speaking. Maybe a way to frame the prompt in a way to build off some intermediate knowledge as a starting point to discover something more advanced about how BigInt works.

  • Custom User Avatar

    Java translation!!

    p.s. thanks for checking :)

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    Python, JavaScript, PHP:

    Wrong array dimension in the describe block message, 'Simple 3x3 arrays' should be 'Simple 3x2 arrays'

  • Custom User Avatar

    In Python, the submission tests go up to 1000 while the description only states that inputs go to 500.

    Depending on the tests in the other languages, either the description should be updated or the Python tests should be changed to match the description.

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

    I found the instructions very confusing.

    I'd simplify it by saying that a good char is in the same column or row of buttons as the previous char.

  • Custom User Avatar

    I've got a Rust solution which failed the "num" crate check, since I used the div_floor function from there. Thought only num::BigInt was disallowed. No matter, I removed the dependency, and it still failed the crate check, so I removed all dependencies (itertools) and it still fails the crate check. I reset the environment with the button at the bottom, still fails. I don't know what to do now. Any ideas? I'm guessing the crate is still installed somewhere so the test is failing.

  • Custom User Avatar

    python new test framework is required. updated in this fork

  • Custom User Avatar

    In the PHP version, the random tests will occasionally pop up an empty string instead of a number, combined with an error:

    Undefined array key ""

    Stacktrace that is supplied with the code goes to the tests, not to the kata-code:

    /workspace/default/tests/AddFunctionTest.php:68
    /workspace/default/tests/AddFunctionTest.php:53
    /workspace/default/tests/AddFunctionTest.php:145
    /workspace/default/tests/AddFunctionTest.php:30
    

    My code handles empty strings as zero, but the tests still fail, as an exception is thrown.

  • Custom User Avatar

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

  • Custom User Avatar

    Decimal numbers are used in the kata, which means floats are not the correct data type for this. The returned result should definitely be a string (or a big decimal, but in JS this is complicated).

  • Loading more items...