4 ms·
It is not "not that difficult": as one of the answers explained, it is impossible to create such a function that works for all values - not just -2147483648, wh
by comex 13y ago
It is not "not that difficult": as one of the answers explained, it is impossible to create such a function that works for all values - not just -2147483648, which obviously cannot comply, but in your case, also 2147483647.