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 best ruby-way
This comment is hidden because it contains spoiler information about the solution
Input range needs to be specified: very large timestamps are tested, but the result is guaranteed to be no more than
10000
. There are hidden assumptions on the required performance.Unix time implicitly has a notion of data type, which is usually unsigned 32-bit integer; the tests instead uses negative numbers and numbers beyond 32-bits. So this needs to be specified better (it will not work for other languages).
It`s not a solution. Since the goal was to remove vulnerabilities, and with this decision they remained
i like that you did that
Makes sense, thanks for clarifying
The case terminates at the first matching condition. so 18.5 is Underweight and 25.0 is Normal
Is this really best practice? This solution doesn't seem to account for situations where bmi is equal to 18.5 or 25.0
Nice approach, I like it.
Should be fixed now.
VERY clever...
This comment is hidden because it contains spoiler information about the solution
It's better to use #first and #last methods instead of [0] and [1].