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.
"math" Import is totally useless "n*m-1" would work fine
Smart! :)
This also won't work if you run calculator("String one", " String two", "+")
No, this is :)))
Two different types of quotes and apostrophes on the same line? No, thanks!
I suggest you change the description as you give the answer directly in it!
Thanks, realised my mistake, have solved it now :)
Code was ok, but mathematics was lacking!
Hi,
Not an issue, a question. ;) (the kata is working fine and as expected)
Your code is creating too much objects in memory => you'll have to work on that (check that you don't go in some cases in an infinite loop creating bigger and bigger arrays, for example)
Cheers
edit: not infinite loop related: just don't create the whole triangle: you'll get tests with arround 150000 levels
I am receiving an error when passing all the tests:
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
Aborted (core dumped)
Exit code 134
There doesn't seem to be much explanation at all on google
Any suggestions?
The is the most succinct approach, but the requirements specify that you treat the list as a "queue" [sic]--i.e, the items of the list may not be accessed randomly as with an array and as you have done in your solution.
It is so good!
Is there an advantage to having the i variable outside of the for()? I have learned that it'd be best to create the variable as part of the loop, to avoid scope pollution (i.e., for(let i=0; i<len; i++))
Pretty pathetic dragons if they only need 2 bullets to be killed...