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.
It's easy with regex. Plus, I don't think this is Kyu 8. The author thought of what?
17 if else statements? lol
He/She should've put it as a dict...
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
One liners aren't common practice in production. Hard to read, prone to bugs. You really don't need a for loop here as you mainly need to specify the larger of the two numbers (math is weird I know) and run the SUM for the numbers in the RANGE.
This comment is hidden because it contains spoiler information about the solution
Looking back, I can't say why the code was accepted at the time. I tried this code today, now the code is too slow. maybe the tests were changed.
This comment is hidden because it contains spoiler information about the solution