Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
TacticalCoder
on Dec 7, 2022
|
parent
|
context
|
favorite
| on:
Fast midpoint between two integers without overflo...
I have a question for the interviewer, maybe a bit metaphysical: what should your function return when one parameter is zero and the other is 1?
roflyear
on Dec 7, 2022
[–]
Just need to define your behavior there. It similar to why languages choose which rounding method to use.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: