Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What would be the signature of your gcd function ?


Numerator, denominator?


For GCD? I would find those names very misleading since semantically the order of the arguments to GCD is irrelevant (even if in the implementation you typically mod by b there's no reason you couldn't mod by a).


This is not mathematically correct. Those names would be pretty misleading, actually.


Good luck with any bigger equation then




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: