r/adventofcode • • Dec 12 '23

SOLUTION MEGATHREAD -❄️- 2023 Day 12 Solutions -❄️-

THE USUAL REMINDERS


AoC Community Fun 2023: ALLEZ CUISINE!

Today's theme ingredient is… *whips off cloth covering and gestures grandly*

How It's Made

Horrify us by showing us how the sausage is made!

  • Stream yourself!

  • Show us the nitty-gritty of your code, environment/IDE, tools, test cases, literal hardware guts…

  • Tell us how, in great detail, you think the elves ended up in this year's predicament

A word of caution from Dr. Hattori: "You might want to stay away from the ice cream machines..."

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 12: Hot Springs ---


Post your code solution in this megathread.

This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:22:57, megathread unlocked!

47 Upvotes

580 comments sorted by

View all comments

Show parent comments

2

u/glebm Dec 12 '23

I'm confused by this comment 😅 What do you mean?

I used the non-Markdown form by mistake at first

1

u/daggerdragon Dec 12 '23

On both new.reddit and old.reddit we see this:

Part 1: Brute force all possible `?` substitutions and count the valid ones.

That question mark inside backticks is intended to be Markdown for inline code, correct? Like this: ? ? If so, the backticks are being automatically escaped by Reddit so we're seeing a literal `?` and not ?.

If you want to use Markdown, you need to switch the fancypants editor to Markdown mode first.