Skip to content

Commit dcaf95b

Browse files
committed
Fixed sonar
1 parent 4cb9d49 commit dcaf95b

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/g3201_3300/s3283_maximum_number_of_moves_to_kill_all_pawns

1 file changed

+1
-1
lines changed

src/main/kotlin/g3201_3300/s3283_maximum_number_of_moves_to_kill_all_pawns/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Solution {
6262
val queue: Queue<IntArray> = LinkedList<IntArray>()
6363
queue.offer(intArrayOf(x1, y1, 0))
6464
visited[x1]!![y1] = true
65-
while (!queue.isEmpty()) {
65+
while (queue.isNotEmpty()) {
6666
val current = queue.poll()
6767
val x = current[0]
6868
val y = current[1]

0 commit comments

Comments
 (0)