I based this translation off of the C one, and I thought that this would be the better choice. Thinking back, long long would have probably been a better idea.
Due to the range being half negative and half positive numbers, about half of the tests could be passed by just returning 0. Though, thinking back, I think it would have been a better idea to generate 200 test cases: 100 with positive numbers and 100 with negative ones (and shuffle them beforehand).
approved
Lua translation!
Where exactly did you get this from?
which ones exactly?
This comment is hidden because it contains spoiler information about the solution
Go translation.
the compiler probably optimizes it away anyway
@trashy_incel: could you look at it again?
Approved
Done.
long long
would have probably been a better idea.Will do both in a moment.
Excellent stylistically and pretty much approve worthy, but I have two questions:
long
orlong long
get the input domain a bit closer to some of the other translations?C++ translation (author is inactive).
lowercase SQL is what we call a "programming war crime".
Loading more items...