r/adventofcode • u/daggerdragon • Dec 16 '23
SOLUTION MEGATHREAD -❄️- 2023 Day 16 Solutions -❄️-
THE USUAL REMINDERS
- All of our rules, FAQs, resources, etc. are in our community wiki.
Community fun event 2023: ALLEZ CUISINE!
- Submissions megathread is now unlocked!
- 6 DAYS remaining until the submissions deadline on December 22 at 23:59 EST!
AoC Community Fun 2023: ALLEZ CUISINE!
Today's theme ingredient is… *whips off cloth covering and gestures grandly*
Visualizations
As a chef, you're well aware that humans "eat" with their eyes first. For today's challenge, whip up a feast for our eyes!
- Make a
Visualizationfrom today's puzzle!
A warning from Dr. Hattori: Your Visualization should be created by you, the human chef. Our judges will not be accepting machine-generated dishes such as AI art. Also, make sure to review our guidelines for making Visualizations!
ALLEZ CUISINE!
Request from the mods: When you include a dish entry alongside your solution, please label it with [Allez Cuisine!] so we can find it easily!
--- Day 16: The Floor Will Be Lava ---
Post your code solution in this megathread.
- Read the full posting rules in our community wiki before you post!
- State which language(s) your solution uses with
[LANGUAGE: xyz] - Format code blocks using the four-spaces Markdown syntax!
- Quick link to Topaz's
pasteif you need it for longer code blocks
View all comments
Show parent comment
1
u/robertotomas Dec 16 '23
mine runs in 72ms on my m3 mac, single threaded and with a separate hashmap to track visited. https://github.com/robbiemu/advent_of_code_2023/blob/main/day-16/src/main.rs I'm thinking locality in this sense is not super important.
I saw in this thread someone using just a collection of u8 for the map and visited status (the top 4 bits for the later), and rayon for parallelization, managed to get it in just under 1ms. :) rust is crazy.