diff --git a/src/main/kotlin/g3601_3700/s3620_network_recovery_pathways/Solution.kt b/src/main/kotlin/g3601_3700/s3620_network_recovery_pathways/Solution.kt index 993a883f..c8f84142 100644 --- a/src/main/kotlin/g3601_3700/s3620_network_recovery_pathways/Solution.kt +++ b/src/main/kotlin/g3601_3700/s3620_network_recovery_pathways/Solution.kt @@ -22,7 +22,7 @@ class Solution { q.offer(i) } } - while (!q.isEmpty()) { + while (q.isNotEmpty()) { val u = q.poll() ts.add(u) for (v in g[u]) {