You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
Run Choose(3, 2)
What is the expected output? What do you see instead?
Expected: (3 choose 2) = 3
Actual: 6
Please provide any additional information below.
This bug can be solved by changing line #152 in the choose.go file from:
return PartialFactInt(n, smaller) / FactInt(smaller)
to:
return PartialFactInt(n, smaller) / FactInt(n-smaller)
Original issue reported on code.google.com by [email protected] on 18 Nov 2013 at 8:55
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 18 Nov 2013 at 8:55The text was updated successfully, but these errors were encountered: