271
Advent of code (lemmy.nz)
you are viewing a single comment's thread
view the rest of the comments
[-] NuclearOatmeal@beige.party 0 points 4 hours ago

@Avicenna @cm0002

To be honest, I'm kind of curious as to how that would actually work, but I put in the cranky sleep deprived code. Example being my solution for yesterday. Big ass lookup dictionary for part 2 because it was late.

Maybe I'll try it after I've got all my stars.

A minimized capture of C# code to solve Problem 2 for 2026 Advent of Code. The top is a big lookup dictionary for part 2. Buried at the bottom is a main function, then a couple lines for solution 1, then a slightly bigger version to count all the letters and determine the map. Following is a 1 liner LINQ expression to walk an actual "map".

this post was submitted on 02 Dec 2026
271 points (96.6% liked)

Programmer Humor

34376 readers
748 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS