Advent of Code: 2023-12-05 18:57:06 |
(deleted)
Level 63
Report
|
I didn’t do any optimisation. Made something to better track how long it takes for the solutions to run. I felt like by the time it took to implement the optimisation, the program would have ended by then.
|
Advent of Code: 2023-12-05 21:14:27 |
(deleted)
Level 63
Report
|
I only save TDB from making sure seed ranges are unique. Would be 15,845,578,766 total seeds and that took 48 mins 22 secs 842 ms (with only Notepad++ and command prompt running). Is saving of TBD% (rounded to 2 dp).
Edit: there was a bug.
Edited 12/5/2023 21:24:50
|
Advent of Code: 2023-12-06 05:44:46 |
JustinR17
Level 60
Report
|
wow the difference between day 5 and 6 😂 I'm surprised they made the input so short and brute-forceable
|
Advent of Code: 2023-12-06 19:00:43 |
(deleted)
Level 63
Report
|
I thought day 6 could be so easy I could do it while bevvied. Is just 2 arrays, times and differences. For each possible time, compare how long is possible to go.
|
Advent of Code: 2023-12-06 19:04:04 |
JustinR17
Level 60
Report
|
Spoilers below for anyone that hasn't done it yet:
Or you can break out the quadratic formula for a more direct solution without iteration :)
Edited 12/6/2023 19:04:16
|
Advent of Code: 2023-12-07 02:06:05 |
(deleted)
Level 63
Report
|
i think the real challenge of day 6 is to halve the number of iterations. It's a bell curve.
|
Advent of Code: 2023-12-08 13:02:55 |
(deleted)
Level 63
Report
|
Is day 8 part 2 another of these CPU intensive tasks? Before was just day 5 part 2.
|
Advent of Code: 2023-12-08 15:00:41 |
(deleted)
Level 63
Report
|
I don’t know another way to solve it. My program has been running for about 2 hours.
Uses a while loop which contains a for loop to follow the complete path from the starts to an end.
|
Advent of Code: 2023-12-08 15:26:44 |
(deleted)
Level 63
Report
|
Do you only need to find out where each ghost’s path end and do a calculation based on that?
|
Advent of Code: 2023-12-08 15:56:30 |
(deleted)
Level 63
Report
|
Based on the output I got after the optimisation, the number is way to high to go through one at a time. It's more likely for my laptop to randomly crash before getting the answer.
I left GCSE maths buried in the past.
My answer is in the 10s of trillions.
Everything up to this part I didnt need google for.
Edited 12/8/2023 16:10:04
|
Advent of Code: 2023-12-09 02:13:37 |
(deleted)
Level 63
Report
|
Never heard of those.
|
Advent of Code: 2023-12-09 17:29:07 |
(deleted)
Level 63
Report
|
Multiple levels of arrays are confusing.
|
Advent of Code: 2023-12-16 14:36:54 |
(deleted)
Level 63
Report
|
I’m away for until sometime next week. Can’t exactly code on mobile.
|