RT @CompSciFactFind the average of two unsigned integers without risking overflow:
(x & y) + ((x ^ y) >> 1)
Rounds down in the average isn’t an integer.
CleverLibre Social is an inclusive social instance for open discussion, learning, and community. All cultures welcome. Hate speech and harassment strictly forbidden.