Hacker News new | ask | show | jobs
by leni536 1326 days ago
The naive (x+y)/2 returns the wrong number for x=UINT_MAX and y=UINT_MAX, for a trivial counter example.