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.
The solution is to go back to the drawing board and think of an algorithm which requires less memory.
If you are making an array of numbers from 1 to x, you are doing it wrong.
even thou my solution passed all the tests I can't submit due to "FATAL ERROR: JS Allocation failed - process out of memory
" What's the solution?
Getting error for random test cases
It should work for random inputs too - Expected: 199786877845155800, instead got: 199786877596205500
I used new Number after the to fixed so how is the data type wrong?
data type checking
All my test results resolved as failed but the expected and actual were exactly matched. Not sure why?
Some test cases failing