Advent of Code 2023 Day 6 (BaseA Style)
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Alteryx Community Team
‎12-05-2023
09:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Discussion thread for day 6 of the Advent of Code - https://adventofcode.com/2023/day/6
Labels:
- Labels:
- Advent of Code
47 REPLIES 47
17 - Castor
‎12-05-2023
10:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Did some prep work on the input as well since I was too lazy to copy each record one by one....
Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
PangHC
12 - Quasar
‎12-06-2023
12:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
17 - Castor
‎12-06-2023
01:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Day 6 done to give a nice little serotonin boost after yesterday's part 2 breakdown! Not winning tool golf with this one but 2 stars = 2 stars.
Spainey
9 - Comet
‎12-06-2023
02:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Not a pretty solution, but a simple one
17 - Castor
‎12-06-2023
02:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
started out thinking to solve this using a quadratic formula like @CoG - but it turns out that the brue-force method runs in just a few seconds anyway, so rather spend extra time finishing Day 5...
I will go back and take a look at how others have solve this thought - just for learning.
Spoiler
the basic process:
- Parse the data into a table like this

- then use Generate Rows to generate valid combinations of hold times - here I could use math to limit the population
- Then just filter the valid ones
The only difference between part 1 and part 2 - is that in part 2 I also cleaned out the whitespace so there is only one race in this set.

- Parse the data into a table like this
- then use Generate Rows to generate valid combinations of hold times - here I could use math to limit the population
- Then just filter the valid ones
The only difference between part 1 and part 2 - is that in part 2 I also cleaned out the whitespace so there is only one race in this set.
17 - Castor
‎12-06-2023
02:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
11 - Bolide
‎12-06-2023
04:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Team brute force! 17 seconds to generate 60m records
15 - Aurora
‎12-06-2023
04:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
17 - Castor
‎12-06-2023
04:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
16 - Nebula
‎12-06-2023
05:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
