According to the Ruby Style guide, the explicit return should be avoided here.
This comment is hidden because it contains spoiler information about the solution
Thank you, phaul, for the explanation, that is very interesting!
Thank you for mentioning the optimization, bidouille!
I thought that solution feedback was visible only by those who already can see solutions…
Well, I won't forget next times.
Interesting solution! May I ask, how you arrived at this one and why the math adds up the way it does?
Use spoiler flag next time, please.
This is beautiful.