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.
OK but what do you suggest to change?
Boring, spent more time on wolfram alpha to extrapolate a finite function than writing code.
yea..
shit kata lmao
OP got bodied lmao
Really clever
Not a kata issue, it's your code what's wrong there.
When you use a global var, it keeps its values on the next function call, so you get wrong results, in call 2, 3 and so on. Making newArray a local var will solve your problem.
Added a test with a letter in it, hopefully it'll fix it.
Added a test with a letter in it, hopefully it'll fix it.
This comment is hidden because it contains spoiler information about the solution
Tests chceck only integer values.
This comment is hidden because it contains spoiler information about the solution
Inappropriate tags (object-oriented?)
needs to explain what a sparse/dense array is more specifically
Loading more items...