Ad
  • Custom User Avatar

    The fact that things stopped working after you broke your solution is not a kata issue :)

    Make sure that your function is named beeramid.

  • Custom User Avatar

    My code was running good until i changed it a little and now its showing
    In file included from main.cpp:7:
    ./tests.cpp:5:18: error: use of undeclared identifier 'beeramid'
    Assert::That(beeramid(9, 2), Equals(1));
    Now even if i undo my code its now working and showing the same error again and again.

  • Custom User Avatar

    This kata put a smile on my face. Zach once again flexed about his lightsabers xdd

  • Custom User Avatar

    Way too easy for 5kyu !

  • Custom User Avatar

    I'm not really familiar with the review process. Are the suggested changes alreadylive on the website or is the old code still running there? In any case on the website I'm currently still getting the same type of error:

    expected:<466805.28571428574> but was:<466805.28571428556>

    expected:<780934.9302325582> but was:<780934.930232558>

  • Custom User Avatar

    Sorry for closing that issue prematurely, I should've noticed that the tolerance is too small... 🤦‍♂️

    Please review & scrutinize Java fork

  • Custom User Avatar

    epsilon of 1e-15 is used but is too small because that would be +-1 21st digit where a double only offers 15 or so

  • Custom User Avatar
  • Custom User Avatar

    I believe I fixed the issue that a solution can generate multiple solutions with the same value. Please try again.

  • Custom User Avatar

    In what language?

  • Custom User Avatar

    The issue with the precision at random tests got once resolved due to user simply using the wrong return type.However even using the right return type (as far as I can see) a similar precision issue still occurs (even with much lower deviation as in the older case).
    Some examples:

    expected:<853157.2307692308> but was:<853157.2307692306>

    expected:<672661.1111111111> but was:<672661.1111111109>

    expected:<579131.1153846154> but was:<579131.1153846155>

  • Custom User Avatar

    Did you add all necessary imports, specifically for java.util.stream.IntStream?

  • Custom User Avatar

    error appeare when I tried solve task using IntStream:
    src/main/java/Solution.java:6: error: cannot find symbol
    return IntStream.range(0, arr1.length).map(i -> arr1[i] - arr2[i]).....
    ^
    symbol: variable IntStream
    location: class Solution
    1 error

  • Custom User Avatar

    Approved

  • Custom User Avatar

    JS translation 🤖🤖

    • used mocha/chai + lodash for randomness
    • used fuzzy assertion intstead of strict assertion
    • added random tests resolving this issue
    • provided inputs on failure
  • Loading more items...