loading...

Discussion on: Daily Challenge #110 - Love VS. Friendship

Collapse
aminnairi profile image
Amin

Thanks for your insight. I didn't know about subtract and when the second solution is kind of obscure to me it seems very cool and short.

Thread Thread
citizen428 profile image
Michael Kohl

Since - is both subtraction and unary minus one can’t use a right-section like (-1), but considering that subtracting is the same as adding a negative number the slightly obscure form makes sense. I’d still use subtract though.