Skip to content

Commit 4a27eca

Browse files
committed
Fix formatting for clang-format
1 parent f094f3e commit 4a27eca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/thealgorithms/maths/DiscreteLogarithmBSGS.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static long discreteLog(long a, long b, long m) {
4141
long value = 1;
4242
for (long i = 0; i < n; i++) {
4343
babySteps.put(value, i);
44-
value = value * a % m; // PMD fix
44+
value = value * a % m; // PMD fix
4545
}
4646

4747
long factor = modPow(a, m - n - 1, m);
@@ -51,7 +51,7 @@ public static long discreteLog(long a, long b, long m) {
5151
if (babySteps.containsKey(gamma)) {
5252
return j * n + babySteps.get(gamma);
5353
}
54-
gamma = gamma * factor % m; // PMD fix
54+
gamma = gamma * factor % m; // PMD fix
5555
}
5656

5757
return -1; // no solution
@@ -71,4 +71,4 @@ public static long modPow(long base, long exp, long mod) {
7171
}
7272
return result;
7373
}
74-
}
74+
}

0 commit comments

Comments
 (0)