loading...

re: Daily Challenge #132 - Is my friend cheating? VIEW POST

FULL DISCUSSION
 

JS

const removNb = n => Array(n).fill(undefined).map((_, i) => [i + 1, ((1 + n)*n/2 - i - 1) / (i + 2)]).filter(([a, b]) => b === ~~b && b <= n);
Code of Conduct Report abuse