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
Because the array itself can't be multiplied or added. You want to use the values inside the array to build another array to return.
why are you modifying the input array? it doesn't say we want to change the data of the input, just return an array based on the data from the input.
Your solution is probably too inefficient. They probably have a cap on the callstack higher than your computer since it's doing the computing on their servers, and with recursion, inefficient solutions means stacking operations. To fix this, try using an iterative solution or figuring out what the O(1) solution is.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution