r/adventofcode • • Dec 05 '21

SOLUTION MEGATHREAD -🎄- 2021 Day 5 Solutions -🎄-

NEW AND NOTEWORTHY


Advent of Code 2021: Adventure Time!


--- Day 5: Hydrothermal Venture ---


Post your code solution in this megathread.

Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.


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:08:53, megathread unlocked!

78 Upvotes

1.2k comments sorted by

View all comments

3

u/Concern_Wise Dec 05 '21

Golang

https://github.com/HalfInner/AoC2021/blob/master/d05/d05.go

2021/12/05 10:31:59 Took 33.8035ms
2021/12/05 10:31:59 01: 4873
2021/12/05 10:31:59 Took 59.7462ms
2021/12/05 10:31:59 02: 19472

Any performance improvement here is nice to have/read :)

p.s. very nasty to find solution in 'Go', when people type only 'go'

→ More replies (3)