56
SOLUTION MEGATHREAD-🎄- 2019 Day 3 Solutions -🎄-(self.adventofcode)
submitted 6 years, 1 month ago* (edited 14 minutes after) by daggerdragon to /r/adventofcode (134.8k)
since 6 years, 1 month ago
3 of 3
Tip Reveddit Real-Time can notify you when your content is removed.
your account history
Tip Check if your account has any removed comments.
view my removed comments you are viewing a single comment's thread.
view all comments


Yeah I do the same in C++ for almost everything AoC. map<pair<int,int>,int> to the rescue.
Oh this is a really nice use of Linq. I was originally working with a Tuple<int,int,int> but there's no way of intersecting them that only compares the first two values that I could find. Ended up creating a whole object for the damn thing: https://github.com/FionaHolder/AdventOfCode2019/blob/master/Day03/Program.cs