This comment is hidden because it contains spoiler information about the solution
:O How did you came up with this? Did you use a source-to-source compiler or something like LISP?
Syntax error when running the tests cases --also sample tests-- in Chrome and Firefox. Here is the stack trace:
Failed to run output script: SyntaxError: missing ] after element listStack trace:_loop/<@https://cr.codewars.com/static/js/app.dcd466127efa50076909.js:1:104666r@https://cr.codewars.com/static/js/vendor.946ea95ea6ab4b61034c.js:54:41041!function(imageData){var canvas = document.getElementById("cvs_ewrdopobnioebfcnmi"),context = canvas.getContext("2d"),data;canvas.width = 36;canvas.height = 36;canvas.style.width = 36 + 'px';canvas.style.height = 36 + 'px';data = context.getImageData(0, 0 , 36, 36);imageData.forEach(function(e,i){data.data[i]=e;});context.putImageData(data, 0, 0);}([249,222,...
Nice Kata. I think there might be inconsitency between the basic tests and the random tests in Javascript. The basic tests expect the solution to be
S(0) + S(1) + ... S(n+1).
while the random tests expects the solution to be
S(0) + S(1) + .... S(n).
for example, the basic test expect ƒ(5) to be 80, while the random test for the same number expects 48.
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
:O
How did you came up with this?
Did you use a source-to-source compiler or something like LISP?
This comment is hidden because it contains spoiler information about the solution
Syntax error when running the tests cases --also sample tests-- in Chrome and Firefox.
Here is the stack trace:
Failed to run output script: SyntaxError: missing ] after element listStack trace:_loop/<@https://cr.codewars.com/static/js/app.dcd466127efa50076909.js:1:104666r@https://cr.codewars.com/static/js/vendor.946ea95ea6ab4b61034c.js:54:41041!function(imageData){var canvas = document.getElementById("cvs_ewrdopobnioebfcnmi"),context = canvas.getContext("2d"),data;canvas.width = 36;canvas.height = 36;canvas.style.width = 36 + 'px';canvas.style.height = 36 + 'px';data = context.getImageData(0, 0 , 36, 36);imageData.forEach(function(e,i){data.data[i]=e;});context.putImageData(data, 0, 0);}([249,222,...
Nice Kata.
I think there might be inconsitency between the basic tests and the random tests in Javascript.
The basic tests expect the solution to be
while the random tests expects the solution to be
for example, the basic test expect ƒ(5) to be 80, while the random test for the same number expects 48.