mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: enable MultipleVariableDeclarations in checkstyle (#5175)
Co-authored-by: vaibhav <vaibhav.waghmare@techprescient.com>
This commit is contained in:
@@ -59,7 +59,9 @@ public final class PollardRho {
|
||||
* @throws RuntimeException object if GCD of given number cannot be found
|
||||
*/
|
||||
static int pollardRho(int number) {
|
||||
int x = 2, y = 2, d = 1;
|
||||
int x = 2;
|
||||
int y = 2;
|
||||
int d = 1;
|
||||
while (d == 1) {
|
||||
// tortoise move
|
||||
x = g(x, number);
|
||||
|
||||
Reference in New Issue
Block a user