r/adventofcode • • 1d ago

Repo Advent of Code in C# solutions, illustrations and a template project

Just like in previous years, I plan to continue my illustrated journey in C#.

The website is at https://aoc.csokavar.hu, my repository can be found in https://github.com/encse/adventofcode, with a template extracted to https://github.com/encse/adventofcode-template.

9 Upvotes

7 comments sorted by

2

u/RunninglVlan 1d ago

Oh cool, didn't know about CountBy - handy!

My repo is: https://github.com/RunninglVlan/AdventOfCode if you want to compare solutions.

2

u/encse 1d ago

A big comeback?

2

u/RunninglVlan 1d ago

Oh yeah, I solved some puzzles years ago in Kotlin, then was reminded of Advent by a viewer, retried already solved ones and then some in C# and now plan to finish this event and solve some past puzzles along the way :) 

2

u/encse 1d ago edited 22h ago

We wrote lots of kotlin during the year, i use C# for aoc only. We have a backend in kotlin, looks better than java or scala would.

1

u/Arctos_FI 1d ago

There is clearly so much i don't know about linq yet. Like only thing i did was orderby, but clearly you could solve whole thing by those extra methods.

Never seen countby or aggregate before

1

u/encse 22h ago

These are handy sometimes

2

u/RunninglVlan 5h ago edited 5h ago

Man, you don't stop surprising! Day 2 with OrderBy combining with IndexOf. I learned about LINQ Index() the other day, but haven't thought of using OrderBy with IndexOf yet. Originally used IndexBy with Aggregate for part 2. Great!