Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
apoorvgarg
on Feb 22, 2019
|
parent
|
context
|
favorite
| on:
Practical Go: Real-world advice for writing mainta...
What would be the signature of your gcd function ?
base698
on Feb 22, 2019
[–]
Numerator, denominator?
mrgriffin
on Feb 22, 2019
|
parent
|
next
[–]
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).
sacado2
on Feb 22, 2019
|
parent
|
prev
|
next
[–]
This is not mathematically correct. Those names would be pretty misleading, actually.
coldtea
on Feb 22, 2019
|
parent
|
prev
[–]
Good luck with any bigger equation then
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: