3 ms·
Why not something as simple as `return (a - b)` ? It’s concise and simple to understand. Instead of returning 1 or -1 it returns a positive or negative value w
by vivekseth 7y ago
Why not something as simple as `return (a - b)` ?
It’s concise and simple to understand. Instead of returning 1 or -1 it returns a positive or negative value with I think is equally effective.
- commandlinefan 7y ago> return (a - b) That will overflow if a & b are longs.