Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zimpenfish
on Dec 7, 2022
|
parent
|
context
|
favorite
| on:
Fast midpoint between two integers without overflo...
Is that the right way around? If `a<b` then `a-b` will be negative, surely, and adding that to `a` will be moving down from `a`, not from `a` to `b`?
cf
https://go.dev/play/p/SgdWzzqDygn
ardel95
on Dec 7, 2022
[–]
Eh, that’s what I get for writing code on a cell phone. Fixed.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
cf https://go.dev/play/p/SgdWzzqDygn