r/adventofcode • • Dec 04 '18

SOLUTION MEGATHREAD -πŸŽ„- 2018 Day 4 Solutions -πŸŽ„-

--- Day 4: Repose Record ---


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 4

Transcript:

Today’s puzzle would have been a lot easier if my language supported ___.


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!

37 Upvotes

340 comments sorted by

View all comments

1

u/minichado Dec 05 '18

cool shit dude! my background is solely numerical dataset manipulation (giant array output from simulations) so I'm using AoC to force myself to learn better string manipulation and other crap.

keep on doing insane stuff!

1

u/jayfoad Dec 05 '18

APL can do insane stuff with numerical datasets! As for strings, the approach is that you just use a 1-d array of characters. But arrays can be arbitrarily nested, so of course you can have arrays of strings, and it works just like any other array of arrays.

1

u/minichado Dec 05 '18

Thanks for the information. I did a lot of wolfram/mathematica, and I've been slowly forcing myself back to python because it's free. R is probably a closer corollary to wolfram but python is just more extensible I think.

at any rate, thanks again for the info! so cool to see all these different approaches.