Ad
  • Custom User Avatar

    since kata is purple, it seems fair

  • Custom User Avatar

    The kata doesn't have a built-in way to visualize the images. The idea is that you should code your own visualization; consider it part of the challenge.

  • Custom User Avatar

    Why don't you state in the description how we can visualise the data?

  • Custom User Avatar

    Thanks for the kind words.

    Another way to visualize the input images is by printing out an ASCII respresentation, one ASCII character per pixel. The smallest digit images are 16 pixels high, so this kind of ASCII representation of them is convenient to work with.

  • Custom User Avatar

    Absolutely remarkable kata:

    • is challenging: you have to eradicate ALL inneficiencies to pass the tests in time, however no local optimisations are required
    • is deductable: you do NOT need to know the "magic" algorythm, you can construct your own based even on the limited amount of information you can find in articles
    • has no ready solutions anywhere (at least I could not even find hints)

    ...which makes it extremely rewarding to solve

    minor hints:

    • you can visualize the input with html canvas, which makes it A LOT easier to understand what your code is doing and why
    • stuck? use console.time() to find inneficiencies in your code
  • Custom User Avatar

    Great kata, thanks!

    I struggled for a second with the edge case when my script found a solution that used the first number in array as a negative, resulting in a false positive answer.
    It does say "between" numbers in the description, but I think it's best if you emphasize it a little more
    suggestions:

    1. make "between" bold in the description
    2. add short explanation in brackets saying "first number should always be positive"

    At least for me that was not obvious