Skip to content

Commit a0df23c

Browse files
authored
Format code for consistency in Solution.java
1 parent c9fe7c3 commit a0df23c

File tree

1 file changed

+3
-3
lines changed
  • solution/3300-3399/3377.Digit Operations to Make Two Integers Equal

1 file changed

+3
-3
lines changed

solution/3300-3399/3377.Digit Operations to Make Two Integers Equal/Solution.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private void runSieve() {
1717

1818
private int solve(int n, int m) {
1919
PriorityQueue<int[]> pq = new PriorityQueue<>(Comparator.comparingInt(a -> a[0]));
20-
pq.add(new int[]{n, n});
20+
pq.add(new int[] {n, n});
2121
Set<Integer> visited = new HashSet<>();
2222

2323
while (!pq.isEmpty()) {
@@ -41,7 +41,7 @@ private int solve(int n, int m) {
4141
s[i] = (char) (s[i] + 1);
4242
int next = Integer.parseInt(new String(s));
4343
if (!sieve[next] && !visited.contains(next)) {
44-
pq.add(new int[]{sum + next, next});
44+
pq.add(new int[] {sum + next, next});
4545
}
4646
s[i] = c;
4747
}
@@ -50,7 +50,7 @@ private int solve(int n, int m) {
5050
s[i] = (char) (s[i] - 1);
5151
int next = Integer.parseInt(new String(s));
5252
if (!sieve[next] && !visited.contains(next)) {
53-
pq.add(new int[]{sum + next, next});
53+
pq.add(new int[] {sum + next, next});
5454
}
5555
s[i] = c;
5656
}

0 commit comments

Comments
 (0)