Please find fork above to have this issue resolved.
I can't find the mistake in the kata code. I want to do a complete rewrite of this kata, but author is still active ..
Random tests have been added some time ago
Apparently not... -> see this
This comment is hidden because it contains spoiler information about the solution
there are random tests as of now
I think the task is set incorrectly and in the check there are arrays with the same members that do not belong to any category from the condition
Added by someone.
I'm sure the author intended it that way, what I don't get is why?
Has this been fixed? (JS) I'm also getting a bunch of off-by-1 errors.
receives an argument, nMax < 20000, as an upper limit (excluded from the result).
But seemingly results expect n to be included.
Edit: for random test n = 821:
Expected: '[{ \'amount numbers\': 360 }, { \'total Sum\': 154643 }, { odd: 195 }, { even: 165 }]', instead got: '[{ \'amount numbers\': 359 }, { \'total Sum\': 153822 }, { odd: 194 }, { even: 165 }]'
If you check the difference in sums, the missing number is 821, which is == n (contradicts description), and is also a prime number, so why should it be included?
lol
Loading collection data...
Please find fork above to have this issue resolved.
I can't find the mistake in the kata code. I want to do a complete rewrite of this kata, but author is still active ..
Random tests have been added some time ago
Apparently not... -> see this
This comment is hidden because it contains spoiler information about the solution
there are random tests as of now
I think the task is set incorrectly and in the check there are arrays with the same members that do not belong to any category from the condition
Added by someone.
I'm sure the author intended it that way, what I don't get is why?
Has this been fixed? (JS) I'm also getting a bunch of off-by-1 errors.
But seemingly results expect n to be included.
Edit: for random test n = 821:
If you check the difference in sums, the missing number is 821, which is == n (contradicts description), and is also a prime number, so why should it be included?
lol
Loading more items...