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() {
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 }
You can’t perform that action at this time.
0 commit comments