Discussion:
Possible bug in A6P1 function declaration?
(too old to reply)
Murphy Berzish
2010-10-26 15:32:26 UTC
Permalink
I noticed that in fractionCreate(), the first argument is of type
"int" but the second argument is of type "double". Is this correct or
should both the numerator and denominator be integers?
David Xingliang Lou (CS 137 Tutor)
2010-10-27 20:04:55 UTC
Permalink
Post by Murphy Berzish
I noticed that in fractionCreate(), the first argument is of type
"int" but the second argument is of type "double". Is this correct or
should both the numerator and denominator be integers?
Hello Murphy

Yes, this was a typo on the problem description. Thank you for pointing
that out. I've corrected this detail.

Rest assured that all denominators on the Marmoset test cases are integers.

David

Continue reading on narkive:
Loading...