Advent of Code 2023 day 22
12/22/2023, 5:00 AMelizarov
12/22/2023, 5:54 AMbj0
12/22/2023, 6:39 AMbj0
12/22/2023, 6:41 AMJonathan Kolberg
12/22/2023, 6:43 AMbj0
12/22/2023, 6:44 AMJonathan Kolberg
12/22/2023, 6:44 AMbj0
12/22/2023, 6:46 AMJonathan Kolberg
12/22/2023, 6:49 AMbj0
12/22/2023, 6:51 AMJonathan Kolberg
12/22/2023, 6:55 AMbj0
12/22/2023, 6:55 AMbj0
12/22/2023, 6:55 AMbj0
12/22/2023, 6:56 AMbj0
12/22/2023, 6:59 AMbj0
12/22/2023, 7:00 AMdaugian
12/22/2023, 8:46 AMJonathan Kolberg
12/22/2023, 8:46 AMelizarov
12/22/2023, 8:51 AMWerner Altewischer
12/22/2023, 10:04 AMephemient
12/22/2023, 10:07 AMval (a, b, c, d, e, f) = line.split(',', '~')
Jonathan Kolberg
12/22/2023, 10:12 AMval (left, right) = split("~")
.map {
it.split(",")
.map { n -> n.toInt() }
.let { (x, y, z) -> Point3D(x, y, z) }
}
Michael de Kaste
12/22/2023, 10:35 AMMax Thiele
12/22/2023, 11:11 AMStandard~ish implementationSame... Part 1 took embarrassingly long until I found a bug, which led to counting some bricks multiple times https://github.com/fabmax/aoc-2023/blob/main/src/main/kotlin/day22/Day22.kt
Max Thiele
12/22/2023, 11:12 AMNeil Banman
12/22/2023, 5:35 PMNeil Banman
12/22/2023, 5:41 PMBricks are magically stabilized, so they never rotate, even in weird situations like where a long horizontal brick is only supported on one end.I was almost certain that this condition would change for part 2, but I'm glad it didn't!
Jonathan Kolberg
12/22/2023, 5:45 PMYour first task is to figure out which bricks are safe to disintegrate. A brick can be safely disintegrated if, after removing it, no other bricks would fall further directly downward.
Michael de Kaste
12/22/2023, 6:26 PMMichael de Kaste
12/22/2023, 6:26 PMkingsley
12/22/2023, 7:49 PMvadzim
12/24/2023, 12:04 PMPaul Woitaschek
12/25/2023, 7:46 AM