HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by glxxyz | Hacker News Reader
Parent
Full thread
glxxyz
·
It can be rewritten without the test:
return a - (a - b) / 2;
View on HN
ardel95
·
Tweet said unsigned ints, so don’t think this would work. Even with signed I think this can overflow.
glxxyz
·
> Tweet said unsigned ints
Which tweet?
Reply on news.ycombinator.com