Format code with prettier (#3375)

This commit is contained in:
acbin
2022-10-03 17:23:00 +08:00
committed by GitHub
parent 32b9b11ed5
commit e96f567bfc
464 changed files with 11483 additions and 6189 deletions

View File

@ -19,7 +19,6 @@ import java.util.Collections;
public class VampireNumber {
public static void main(String[] args) {
test(10, 1000);
}
@ -32,15 +31,30 @@ public class VampireNumber {
// System.out.println(i+ " "+ j);
if (isVampireNumber(i, j, true)) {
countofRes++;
res.append("" + countofRes + ": = ( " + i + "," + j + " = " + i * j + ")" + "\n");
res.append(
"" +
countofRes +
": = ( " +
i +
"," +
j +
" = " +
i *
j +
")" +
"\n"
);
}
}
}
System.out.println(res);
}
static boolean isVampireNumber(int a, int b, boolean noPseudoVamireNumbers) {
static boolean isVampireNumber(
int a,
int b,
boolean noPseudoVamireNumbers
) {
// this is for pseudoVampireNumbers pseudovampire number need not be of length n/2 digits for
// example
// 126 = 6 x 21
@ -58,7 +72,6 @@ public class VampireNumber {
// methode to Split the numbers to Digits
static String splitIntoDigits(int num, int num2) {
StringBuilder res = new StringBuilder();
ArrayList<Integer> digits = new ArrayList<>();