3 ms·
I’m not convinced that solution is much better. It can be improved to x/2 + y/2 (which still gives the wrong answer if both inputs are odd).
by Jaxan 2y ago
I’m not convinced that solution is much better.
It can be improved to x/2 + y/2 (which still gives the wrong answer if both inputs are odd).