I mean, if you want a one-liner, you can't do much better, I think. But if you don't mind adding one line, you can get the max and min values above. But for this purpose, it's pointless, because it's not making a notable improvement in terms of performances.
Thanks! Actually, it's only a matter of commutativity with the multiplication operation, plus the divison operation that "reverts" the additionnal (and useless) calculation operations!
This doesn't happen in the tests, so I guess we don't have to support that.
Very handful, indeed
Wow! That's neat! Thanks for the explanation.
What does the ":=" operator mean? Thanks
Wow, very good solution! A bit verbose, but definitely better practice imo.
I mean, if you want a one-liner, you can't do much better, I think. But if you don't mind adding one line, you can get the max and min values above. But for this purpose, it's pointless, because it's not making a notable improvement in terms of performances.
This comment is hidden because it contains spoiler information about the solution
It must be a binary tree.
As long as you provide an expression that is of boolean type, you can do it! :)
Your genius was clean cut by the float type ahaha
Interesting, didn't know that until now! Thanks
Thanks!
Thanks! Actually, it's only a matter of commutativity with the multiplication operation, plus the divison operation that "reverts" the additionnal (and useless) calculation operations!
:D
Don't use a "l"-called variable, this can cause some confusion ;)
Loading more items...