We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cb9d49 commit dcaf95bCopy full SHA for dcaf95b
src/main/kotlin/g3201_3300/s3283_maximum_number_of_moves_to_kill_all_pawns/Solution.kt
@@ -62,7 +62,7 @@ class Solution {
62
val queue: Queue<IntArray> = LinkedList<IntArray>()
63
queue.offer(intArrayOf(x1, y1, 0))
64
visited[x1]!![y1] = true
65
- while (!queue.isEmpty()) {
+ while (queue.isNotEmpty()) {
66
val current = queue.poll()
67
val x = current[0]
68
val y = current[1]
0 commit comments