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.
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
Now it's 6 :(
This comment is hidden because it contains spoiler information about the solution
I've made the changes, please review it again.
Pretty sure he isn't asking for a technical solution Baronf, he's pointing out the behaviour is undefined based on the description. You pointing out you can return an alternate value using an if-statement is not useful when the expected value for the empty array is not defined in the specification. Should it be NaN? 0? null/None?
This comment is hidden because it contains spoiler information about the solution
Thank you
@Shephard No "something else" here, just adding a reference.
I can't believe this is possible. I mean, i expected append() to behave as a pass-by-reference at best, but this is something else, it feels like the language (interpreter...) is creating some obscure references and when something is being modified, it translates to everywhere in real-time (kind of a really really bizarre observer pattern)
Only 6 now ;-)
This comment is hidden because it contains spoiler information about the solution
I agree, you could put it more subtle, like a
# try this
comment in the initial code...You're welcome!
@doc_d0s are you sure about that ? 14 + 14 + 14 +14 +2 = 58 not 72.
Loading more items...