File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
solution/3300-3399/3377.Digit Operations to Make Two Integers Equal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ private void runSieve() {
17
17
18
18
private int solve (int n , int m ) {
19
19
PriorityQueue <int []> pq = new PriorityQueue <>(Comparator .comparingInt (a -> a [0 ]));
20
- pq .add (new int []{n , n });
20
+ pq .add (new int [] {n , n });
21
21
Set <Integer > visited = new HashSet <>();
22
22
23
23
while (!pq .isEmpty ()) {
@@ -41,7 +41,7 @@ private int solve(int n, int m) {
41
41
s [i ] = (char ) (s [i ] + 1 );
42
42
int next = Integer .parseInt (new String (s ));
43
43
if (!sieve [next ] && !visited .contains (next )) {
44
- pq .add (new int []{sum + next , next });
44
+ pq .add (new int [] {sum + next , next });
45
45
}
46
46
s [i ] = c ;
47
47
}
@@ -50,7 +50,7 @@ private int solve(int n, int m) {
50
50
s [i ] = (char ) (s [i ] - 1 );
51
51
int next = Integer .parseInt (new String (s ));
52
52
if (!sieve [next ] && !visited .contains (next )) {
53
- pq .add (new int []{sum + next , next });
53
+ pq .add (new int [] {sum + next , next });
54
54
}
55
55
s [i ] = c ;
56
56
}
You can’t perform that action at this time.
0 commit comments