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