Ad
  • 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