From 2f09827d5577550c554be2edae82a8ebfda23f00 Mon Sep 17 00:00:00 2001 From: dnutiu Date: Thu, 7 Dec 2023 23:33:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=84Advent=20of=20Code=20-=20tidy=20day?= =?UTF-8?q?7=20P2=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/AdventOfCode2023/day7/CamelCards.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/AdventOfCode2023/day7/CamelCards.kt b/src/main/kotlin/AdventOfCode2023/day7/CamelCards.kt index 59d272e..c87dd85 100644 --- a/src/main/kotlin/AdventOfCode2023/day7/CamelCards.kt +++ b/src/main/kotlin/AdventOfCode2023/day7/CamelCards.kt @@ -1,7 +1,6 @@ package AdventOfCode2023.day7 import AdventOfCode.Puzzle -import kotlin.math.max data class Card(val data: String, val bid: Int) { constructor(data: List) : this(data[0], data[1].toInt()) @@ -47,7 +46,7 @@ data class Card(val data: String, val bid: Int) { } } -fun Map.keyForMaxValue(): Char { +private fun Map.keyForMaxValue(): Char { var maxValue = entries.first().value var maxKey = entries.first().key