News for hackers. Stuff that matters.
Re:Fast midpoint between two integers without overflow by TacticalCoder on Wednesday December 07, 2022 @08:55AM (#33894338)
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?
Re:Fast midpoint between two integers without overflow by roflyear on Wednesday December 07, 2022 @09:21AM (#33894595)
Just need to define your behavior there. It similar to why languages choose which rounding method to use.