@@ -180,7 +180,7 @@ class Solution {
180
180
181
181
private int solve (int n , int m ) {
182
182
PriorityQueue<int[]> pq = new PriorityQueue<> (Comparator . comparingInt(a - > a[0 ]));
183
- pq. add(new int []{n, n});
183
+ pq. add(new int [] {n, n});
184
184
Set<Integer > visited = new HashSet<> ();
185
185
186
186
while (! pq. isEmpty()) {
@@ -204,7 +204,7 @@ class Solution {
204
204
s[i] = (char ) (s[i] + 1 );
205
205
int next = Integer . parseInt(new String (s));
206
206
if (! sieve[next] && ! visited. contains(next)) {
207
- pq. add(new int []{sum + next, next});
207
+ pq. add(new int [] {sum + next, next});
208
208
}
209
209
s[i] = c;
210
210
}
@@ -213,7 +213,7 @@ class Solution {
213
213
s[i] = (char ) (s[i] - 1 );
214
214
int next = Integer . parseInt(new String (s));
215
215
if (! sieve[next] && ! visited. contains(next)) {
216
- pq. add(new int []{sum + next, next});
216
+ pq. add(new int [] {sum + next, next});
217
217
}
218
218
s[i] = c;
219
219
}
@@ -283,6 +283,7 @@ private:
283
283
}
284
284
return -1;
285
285
}
286
+
286
287
public:
287
288
int minOperations(int n, int m) {
288
289
runSieve();
0 commit comments