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.
Whatever the standard practice is, the instructions should specify that the input cannot be mutated. When the random tests fail, they give errors that imply the test is inconsistent with the example tests, and that they are looking for something other than the stated objective.
@
da_big_fella
: If you're autodidact, CW will learn you that. ;) If you had programation courses other than simple introduction courses, your teachers should have... :/I don't think you understand how arrays and objects work in most languages.
Just wait until you write all kinds of functions with side effects in production code, and see everyone want to beat you to hell for all the bugs you're causing :P
Well, my mother never taught not to. How should I know it's standard practice? If you don't want your arrays mutated, don't pass them by reference into my functions.
Not mutating the input is the standard practice though.
I don't know why lots of people mutate the input and then complain the random tests not working, that's what you get for mutating the input after all!