Skip to content

Commit 7d4de81

Browse files
committed
Fix spacing after private constructor for Checkstyle
1 parent 6c83fc8 commit 7d4de81

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@
1313
* <p>
1414
* Time complexity: O(√m)
1515
* Space complexity: O(√m)
16+
*
1617
* @see <a href="https://en.wikipedia.org/wiki/Baby-step_giant-step">Baby-step giant-step algorithm</a>
17-
*/
18+
*/
1819
public class DiscreteLogarithmBSGS {
1920

21+
private DiscreteLogarithmBSGS() {
22+
throw new UnsupportedOperationException("Utility class");
23+
}
24+
2025
/**
2126
* Computes x such that (a^x) % m == b.
2227
* Returns -1 if no solution exists.

0 commit comments

Comments
 (0)