AdventOfCode
advent-of-code
AdventOfCode | advent-of-code | |
---|---|---|
5 | 25 | |
7 | 5 | |
- | - | |
5.3 | 8.0 | |
6 months ago | 5 months ago | |
Rust | Scala | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
AdventOfCode
-
Languages in 25 Days
I did the same challenge this year, though I didn't use as “esoteric” languages (TeX… I love it :D), but I've made it more difficult than necessary by using the languages I'm familiar with first, before realizing this might be a mistake… I've written on my learnings on the AoC subreddit[0] and if you'd like to see my code, it's of course on GitHub[1].
0: https://www.reddit.com/r/adventofcode/comments/zwi0t4/2022_w...
1: https://github.com/d12bb/AdventOfCode/tree/main/2022
-
[2022] What I learned using a different language each day
Anyways, if you're interested, here's the code. Now I'll try to get rid of all these compilers, interpreters, language servers, Neovim plugins etc. I'll never use again…
-
AoC 2022 day 11 done in Raku, looking for feedback
I never used Raku (or even Perl) before, but as I try to solve Advent of Code using a different language every day this year, I did today's problem in Raku. I'm quite intrigued by its Grammar feature and used it to parse the input, but found it really difficult to get working. That said, I'd like to hear from more experienced Rakuistas if what I did was even remotely idiomatic or looks just gross to your eyes. So here's my code (may be easier to read on Github):
-
-🎄- 2022 Day 11 Solutions -🎄-
Today's Raku: src
-
-🎄- 2022 Day 9 Solutions -🎄-
I'm doing different language each day, all solutions here.
advent-of-code
-
-🎄- 2022 Day 13 Solutions -🎄-
Scala using µJson. Really happy with how concise this is. I was able to parse everything into a Packet class that extends Ordered, which gives us the compare function. So once that was implemented recursively according to the rules we were given, I was able to jsut call .sorted for part 2.
-
-🎄- 2022 Day 12 Solutions -🎄-
Scala using jgrapht. I thought part 2 would require a different graph (similar to 2018 day 22) since the story said "to avoid needing to get out your climbing gear..." Glad that wasn't the case!
-
-🎄- 2022 Day 11 Solutions -🎄-
Scala. Pretty happy with how I parsed these into anonymous instances of my Monkey trait. For me part 2 wasn't hard because of the modulo trick, but because I was using mutable queues. So I had to add a reset() method to get things back the way they were before running part 2
-
-🎄- 2022 Day 10 Solutions -🎄-
Scala using tail recursion. Not the prettiest, but it works
-
-🎄- 2022 Day 9 Solutions -🎄-
Scala. Not too bad with my Point helper class. After part 1 I refactored the movements into a move helper that just takes 2 arbitrary points; the current point and the one we are moving towards. Then it was easy enough to just apply that in order each iteration for part 2.
-
-🎄- 2022 Day 8 Solutions -🎄-
Scala. It's ugly, but it works ¯\_(ツ)_/¯
-
-🎄- 2022 Day 5 Solutions -🎄-
Scala. Parsing wasn't as hard as I thought it would be using transpose and then just filtering non-alphanumeric characters. I initially parsed to a Map[Int, mutable.Stack[Char]] but then that bit me in part 2 when I would have to "reset" it (dang mutability!). So instead I parse to Map[Int, String] and just build the mutable stacks twice.
-
-🎄- 2022 Day 4 Solutions -🎄-
Updated version using sets instead of ranges
-
-🎄- 2022 Day 2 Solutions -🎄-
Scala. A little more verbose than I would like, but it works ¯\_(ツ)_/¯
-
-🎄- 2022 Day 1 Solutions -🎄-
Scala
What are some alternatives?
aoc2022 - Advent of Code 2022
AdventOfCodeHaskell - Advent of Code in Haskell
AdventOfCode - Hacky solutions for lovely problems
advent-of-code
adventofcode - adventofcode.com solutions
advent-of-code-rust - 🎄Starter template for solving Advent of Code in Rust.
aoc2018
advent-of-code-2022 - 🎄 My Advent of Code solutions in Rust. http://adventofcode.com/2022
AoC - my personal repo for the advent of code yearly challenge
adventofcode - Advent of Code challenge solutions
Advent-of-code - My solutions of adventofcode.com
AdventOfCode-Day4-CampCleanup - .NET Core console app that solves the AdventOfCode Day 3 puzzle - Camp Cleanup