Skip to content

Commit a1fbd9b

Browse files
committed
Comments added
1 parent a884100 commit a1fbd9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/williamfiset/algorithms/math/NChooseRModPrime.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @author Rohit Mazumder, mazumder.rohit7@gmai.com */
12
package com.williamfiset.algorithms.math;
23

34
import java.math.BigInteger;
@@ -29,6 +30,7 @@ public static long compute(int N, int R, int P) {
2930
% P;
3031
}
3132

33+
// Method for testing output against the output generated by the compute(int,int,int) function
3234
private static String bigIntegerNChooseRModP(int N, int R, int P) {
3335
if (R == 0) return "1";
3436
BigInteger num = new BigInteger("1");

0 commit comments

Comments
 (0)