Skip to content

Commit 68c695f

Browse files
committed
Fixed sonar
1 parent 6f370c2 commit 68c695f

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/g3601_3700/s3629_minimum_jumps_to_reach_end_via_prime_teleportation

1 file changed

+1
-1
lines changed

src/main/kotlin/g3601_3700/s3629_minimum_jumps_to_reach_end_via_prime_teleportation/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Solution {
2727
val q = ArrayDeque<Int>()
2828
q.add(0)
2929
dist[0] = 0
30-
while (!q.isEmpty()) {
30+
while (q.isNotEmpty()) {
3131
val i: Int = q.poll()!!
3232
val d = dist[i]
3333
if (i == n - 1) {

0 commit comments

Comments
 (0)