From 3d17ed29c79dea6cb73ed8bfb8b37c2522cc24c8 Mon Sep 17 00:00:00 2001 From: chrisly42 Date: Tue, 10 Dec 2024 18:19:32 +0100 Subject: [PATCH] Unused variable. --- src/aoc2024/Day09.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/aoc2024/Day09.kt b/src/aoc2024/Day09.kt index d3c6a38..40d1858 100644 --- a/src/aoc2024/Day09.kt +++ b/src/aoc2024/Day09.kt @@ -48,14 +48,12 @@ fun main() { fun part2(input: List): Long { var pos = 0 var isFile = true - var fileId = 0 val freeList = Array>(10) { TreeSet() } val fileList = ArrayList>((input[0].length + 1) / 2) for (c in input[0]) { val size = c - '0' if (isFile) { fileList.add(pos to size) - fileId++ } else if (size > 0) { freeList[size].add(pos) }