r/adventofcode • • Dec 21 '18

SOLUTION MEGATHREAD -🎄- 2018 Day 21 Solutions -🎄-

--- Day 21: Chronal Conversion ---


Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag or whatever).

Note: The Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.


Advent of Code: The Party Game!

Click here for rules

Please prefix your card submission with something like [Card] to make scanning the megathread easier. THANK YOU!

Card prompt: Day 21

Transcript:

I, for one, welcome our new ___ overlords!


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

edit: Leaderboard capped, thread unlocked at 01:01:01! XD

9 Upvotes

93 comments sorted by

View all comments

Show parent comment

1

u/nluetzge Dec 21 '18

I really like your solution. Its fast and simple. I'm still running the brute force method for part two ... just want to see if it gives me the same result. One question: is there a reason why you are using those numbers in the hexadecimal format? Just curious.

1

u/VikeStep Dec 21 '18

When I saw those numbers in the code I noticed that they looked like bitmasks. I thought that maybe by converting them to hex first it might help me understand what the program is actually doing. In the end it didn't really though.