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.
Saying that 471 people have completed this question in JavaScript it is very likely your code is incorrect.
Also since there are random tests on this kata you will find that the passed/failed amount will vary.
Hi Dimas_Day, unfortunately you have not passed all the tests, just the sample tests. The Fixed and random tests contain larger numbers, so you're getting a
JavaScript heap out of memory
error because you're trying to use more heap than is there to use to calculate from them. The javascript tests do not need to be fixed, you need to optimize your code to use less memory... (also make sure it's optimized for time) Good luck!Please post your code and tick the box
Mark as having spoiler content
.