Ad
  • Default User Avatar

    The sample test code contains an error. The code:

    const errOne = Math.abs(stats[1] / count) - (1 / 3);

    Should read:

    const errOne = Math.abs(stats[1] / count - (1 / 3));

    ...and the same for errTwo and errThree.

    As it is written, absurdly low counts for a result pass the test.