Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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.