Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D11: Adding answers. #22

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/kotlin/day11/day11.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ fun answer2(input: String): Long =
fun main() {
val input = fetchAdventOfCodeInput(2024, 11)
println("--- Day 11: Plutonian Pebbles ---")
timedFunction("Part 1") { answer1(input) }
timedFunction("Part 1") { answer1(input) } // 185894
println("\tCache size: ${cacheSize()}")
timedFunction("Part 2") { answer2(input) }
timedFunction("Part 2") { answer2(input) } // 221632504974231
println("\tCache size: ${cacheSize()}")
}
}
Loading