|
|
On 17/08/2013 06:58 PM, clipka wrote:
> He should also be prepared for
>
> return Math.Abs(input);
>
> possibly with an added comment to the effect that the abs(int) function
> should be refactored away at the earliest possible opportunity ;-)
Heh, yeah. I think when an interviewer asks how to implement a standard
library function, and you call the standard library function, you're
probably not going to get mad props for that. ;-)
Post a reply to this message
|
|