Menu

Post image 1
Post image 2
1 / 2
0

Advent of Code 2015 days 3-8 in Clojure

DEV Community: clojure·Andy N·3 days ago
#jAoK36se
#dev#fullscreen#input#enter#article#ama
Reading 0:00
15s threshold

Yeah, I'm starting to think my initial comment about taking until the heat death of the universe to complete this wasn't far off the mark. I'm not really slow at finishing the tasks, it's just between working , the drudgery of everything else in life and possible undiagnosed ADHD, progress becomes a sporadic thing. Gone forever I think are the late-nighters of chugging caffeinated drinks... But with that said, I have been slowly chugging away and gotten myself up to the heady heights of puzzle number 8. I don't think I shall labour over each and every puzzle, instead I'll just gloss over the interesting parts. Day 03 You're trying to determine how many points are visited if you're given a list of directions (N/S/E/W effectively). One pattern with this sort of thing I like to do is to store the position transformation as a map with the keys being the direction and the values being values to add to x and y coordinates.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More