Advent of Code 2023 day 8
12/08/2024, 5:00 AMAndre T
12/08/2024, 5:31 AMAndre T
12/08/2024, 5:33 AMMichael de Kaste
12/08/2024, 5:38 AMMichael de Kaste
12/08/2024, 5:45 AMMarcin Wisniowski
12/08/2024, 5:46 AMMarcin Wisniowski
12/08/2024, 5:47 AMMarcin Wisniowski
12/08/2024, 5:49 AMNeil Banman
12/08/2024, 6:28 AMNeil Banman
12/08/2024, 6:28 AMfilter { antinode -> antinode isWithin cityLimits }
Paul Woitaschek
12/08/2024, 6:44 AMPaul Woitaschek
12/08/2024, 6:45 AMJakub Gwóźdź
12/08/2024, 6:46 AMJakub Gwóźdź
12/08/2024, 6:47 AMPaul Woitaschek
12/08/2024, 6:48 AMSergei Petunin
12/08/2024, 6:51 AMT
-frequency antennas are all exactly in line with two antennas" With which two antennas? And how on Earth are three antennas in line with two if they aren't even in line with themselves?Marcin Wisniowski
12/08/2024, 6:52 AMMarcin Wisniowski
12/08/2024, 6:53 AMPaul Woitaschek
12/08/2024, 6:53 AMSergei Petunin
12/08/2024, 6:59 AMephemient
12/08/2024, 7:24 AMJakub Gwóźdź
12/08/2024, 7:31 AMbj0
12/08/2024, 7:34 AMphldavies
12/08/2024, 8:50 AMkingsley
12/08/2024, 9:19 AMAnirudh
12/08/2024, 9:47 AMT
-frequency antennas are all exactly in line with two antennas, so they are all also antinodes!
what was a 5 minute change took me 30 mins to debug coz I thought my node generation was wrong. and all I needed to do was remove a drop(1)
🤦Anirudh
12/08/2024, 10:23 AMIt's "every antenna from the 3 antennas", not "all 3 antennas together" are in line.or rather: for T1 and T2, T2 is in line for T1 and T3, T3 is in line for T2 and T1, T1 is in line. etc. so any non-single antenna becomes and antinode. (my input didn't have any single nodes)
vadzim
12/08/2024, 10:59 AMJaap Beetstra
12/08/2024, 11:00 AMAnirudh
12/08/2024, 11:25 AMAnirudh
12/08/2024, 12:12 PMPoint.minus(other: Point)
which is just like plus
written in previous years.
both parts use sequences, so the only diff is getAntiNodes(drop = 1, take = 1)
vs getAntiNodes(drop = 0, take = Int.MAX_VALUE)
(that large take
doesn't matter since it's a sequence)Ozioma Ogbe
12/08/2024, 1:22 PMJakub Gwóźdź
12/08/2024, 1:32 PMCharles Flynn
12/08/2024, 3:33 PMCharles Flynn
12/08/2024, 3:33 PMtodd.ginsberg
12/08/2024, 4:41 PMtodd.ginsberg
12/08/2024, 4:43 PMritesh
12/08/2024, 5:47 PMritesh
12/08/2024, 5:48 PMritesh
12/08/2024, 5:50 PMJakub Gwóźdź
12/08/2024, 5:58 PMMarcin Wisniowski
12/08/2024, 6:00 PMBufferedImage
, saving every frame to a PNG and then converting the output PNGs to a video. Probably ends up simpler to just set pixel colors at coordinates, than dealing with UI.Jakub Gwóźdź
12/08/2024, 6:03 PMritesh
12/08/2024, 6:04 PMJakub Gwóźdź
12/08/2024, 6:04 PMJakub Gwóźdź
12/08/2024, 6:07 PMroman.belov
12/08/2024, 9:16 PMDan Fingal-Surma
12/09/2024, 3:57 AMDan Fingal-Surma
12/09/2024, 3:57 AMDan Fingal-Surma
12/09/2024, 4:08 AM