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.
The kata states input will be a non-negative integer. In cases like these I assume the validation/input scrubbing has happened before attempting to call the function.
A few years late on the reply, and maybe the overview has changed since, but it states the input will be a non-negative integer
I'd definitely want to have some input validation and filtering in place before hitting the eval. Despite what others say about the evils of eval, it's perfectly legitimate to use if, and only if, you know fully what you'll be feeding into it and that it won't crash your code, so filtering to test for NaN inputs, and/or wrapping in a try/catch block should be the case here.
This comment is hidden because it contains spoiler information about the solution
digital_root(2659566561212654879546312445)
Try call this. Will be Maximum call stack size
lmao
definition of quick and dirty
lol i wrote the same code
Why that? I see no issue with recursion...
Bc the office value always needs to be incremented and should therefore not be included in the conditional code.
the home value is only reduced if an umbrella already was waiting there to be taken with.