Skip to content

mazharenko/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code

Here are my solutions for the Advent of Code event.

2️⃣0️⃣2️⃣4️⃣

I had been missing various features of C#. At the same time, I found myself wondering how well I could handle situations where I had previously relied heavily on specific features of F#. So, this year, I decided to solve the AoC puzzles in C#.

Additionally, I’m looking forward to improving the parsing process. I plan to try out Superpower and invest in some extensions to achieve a concise syntax for some common patterns found in AoC inputs.

2️⃣0️⃣2️⃣3️⃣

aoc-2023

No longer happy with notebooks. Decided to sacrifice visualization at all and focus on a different thing: on optimizing the routine when solving puzzles, namely:

  1. Go to the site and download the input.
  2. Feed the input to the program.
  3. Copy the result to the clipboard.
  4. Paste it into the browser.
  5. Doh, wrong.
  6. Fix, compile, run, copy, paste.
  7. Doh, "You gave an answer too recently."
  8. Wait.
  9. Repeat.

This is how I came up with the idea of aoc-agent — a C# source generator that turns your library with actual algorithms into a self-validating, self-running console application that calculates and submits answers automatically.

Once again, F#. Found Farkle to be much better, still cumbersome and mind-numbing sometimes.

2️⃣0️⃣2️⃣2️⃣

AoC-2022

More F# and more visualization in a notebook. Try FParsec to parse input. Try lenses 😱.

2️⃣0️⃣2️⃣1️⃣

AoC-2021

Continue playing with F#. Discovered wonderful .NET Interactive notebooks. Invested into the presentation of the results: mermaid, plotly, canvas.

2️⃣0️⃣2️⃣0️⃣

aoc2020

First time taking part in the event. As a C# developer who was reading a lot about F#, wanted to give it a try on "real" tasks. It showed to be quite suitable for many puzzles thanks to immutability and structural comparison out of the box.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages