From 2efb995cc4e936e8aca85908a4b562a68c8d83d5 Mon Sep 17 00:00:00 2001 From: Valentyn Kolesnikov Date: Tue, 22 Jul 2025 22:20:28 +0300 Subject: [PATCH] Improved task 3620 --- .../g3601_3700/s3620_network_recovery_pathways/Solution.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) {