Advent of Code: Year 2021, Day 1
I am back after not blogging for 6 months. Who knows if I will blog every day, but I am excited for Advent of Code regardless!
I am back after not blogging for 6 months. Who knows if I will blog every day, but I am excited for Advent of Code regardless!
Today is Father’s Day in the U.S. I have an almost-11-month-old son who I should be spending time with, but I feel the need to post a blog because I have bee...
Part 1 was probably the hardest this week, but I ended up being able to adapt a solution from an existing Python library.
I had a very busy weekend and didn’t get the opportunity to post this during the actual week of the challenge, but I will post both 115 and 116 today!
Both of this week’s solutions look remarkably similar, because we were able to utilize the first subroutine for each one!
Task 1 allowed for some functional programming using some cool built-ins in Raku. Task 2 built on some code I wrote for Challenge 94.
A little string manipulation and recursion today. My solution to task 2 is almost the same as my solution to Advent of Code 2020: Day 10 (part 2)!
I was apparently the champion of the Perl Weekly Challenge for last month, which is pretty cool! I encourage folks to go read my interview with Mohammad Anwa...
A couple IO-related challenges this week with nice functional solutions. 🙂
Two fun tasks this week that were both able to be solved in a functional manner 🎉
Task 1 this week is kind of a joke, but task 2 was interesting!
I wrote this week’s answers several days ago, but forgot to commit them. I ended up getting a new laptop and had to rewrite them. I think they ended up the s...
Task 2 seems like it would be difficult, but once again, Raku has built-in mechanisms to help us out!
This week’s challenges are short and sweet, but still give us the opportunity to explore some interesting Raku-isms!
This week had some fun topics like recursion, memoization, and IO/data validation!
Challenge two this week was… interesting, to say the least. But, we are through it, and it’s the weekend! 🍻
Part one was an exercise in efficiency and short-circuiting; I am sure there are more optimizations I could add, but it works as is. 🙂 Let me know if you see...
This week was pretty fun – solution one ends up re-using some code from my first post (Challenge 88), and solution two explores Barycentric coordinates! No u...
This week was a lot of fun! Challenge 1 threw an additional curve ball at us – the solution should be a “one-liner.” I did my best to fit my solution on one ...
This week’s theme is regex, which is something the Perl family of languages has always been known for.
This week’s solutions explore some more obscure parts of the Raku ecosystem, namely state variables and adverbs.
My solution to challenge two builds on last week’s challenge two, so I encourage you to go read last week’s post if you haven’t already!
I admittedly took a shortcut for part two this week, but it allowed me to introduce modules here (I don’t believe I have used them before in a blog), so I th...
Two pretty simple challenges this week! I tried ot focus on strongly typed subroutines and methods to shake things up.
The second challenge was a lot like last weeks second challenge, so I went a step further and implemented multiple tree traversals. I won’t include the tests...
I was going to stop adding my test cases (to the blog, not the code) this week, but after writing a solution that passed the provided test cases for part one...
It was a slow Christmas day for me, for the most part, so I decided to knock this challenge out as well as finishing up AoC!
Merry Christmas! Part two was probably my favorite part of all of Advent of Code; check it out!
Merry Christmas Eve! I had a lot more fun with today’s challenge than the past few days. It is reminiscent of days 11 and 17, but with a fun twist. I also so...
This is just trashy, slow code that gets the job done. Not functional, not fast, not clever, and not nice to look at. Anyway, enjoy!
I am posting day 22’s blog a day late due to an outage at work that took precedence. However, you can see from my git history that the code itself was writte...
I had much more fun with today’s puzzle than yesterday’s! We are back in Raku, after a few days of detouring through Python.
Today was… not fun, to say the very least. It was a lot of tedium, and I am not super proud of my solution.
After I was singing Raku’s praises yesterday, it had to come back to bite me.
I finally got some time between my day job and Advent of Code to tackle this week’s Perl Weekly Challenge. Pretty easy stuff this week; hope the difficulty r...
I like to hate on Raku quite a bit, but it was literally the perfect language for today’s challenge. I guess the love-hate relationship continues!
Today was almost exactly like day 11 except with more dimensions. If you remember from day 11, the Raku solution was so slow that I had to write a Python sol...
We got to explore some cool features of Raku today, even if it wasn’t 100% functional. 🙂 Read on to see what I am talking about!
Even with how short and sweet today’s solution is, I had to rewrite it between parts one and two after hitting the maximum recursion depth. So we’ve got one ...
Today was much less math-heavy than yesterday, although we will dive into an algorithm that would make it faster. However, I did do this problem more imperat...
Today’s challenge was… interesting, to say the least. It may look short and sweet, but it is fairly complex and requires a fair bit of number theory for part...
Today was the first day where I didn’t use the same code for parts one and two – they were just too different! Other than that, this is a classic recursive s...
I am giving myself half credit for today; the solution I came up with is in Raku, but it is an iterative solution. Additionally, this solution is slow. In fa...
Part two today almost forced me to use an iterative approach that would require a mutable array. However, I stumbled on a great feature of Raku that let me d...
Today we have a classic sliding window problem. But, instead of the traditional iterative approach, we take a recursive approach.
Today tripped me up a bit in part 2 due to my lack of understanding around copying objects in Raku. Regardless, we made it through and are now over 30% of th...
Today was a busy day with both Advent of Code and the Perl Weekly Challenge. Luckily, the PWC was short and sweet this week, and a nice breather after the Ad...
Well, today was our streak breaker. For the life of me, I could not get Raku to run in a timely manner. I ended up reverting to Python and using a more imper...
Well, our old pal set theory reared its head again today. I’m very happy with the middle ground I found between conciseness and readability with this challen...
Binary search is a well-known algorithm for searching already sorted lists. I liken it to searching for a book at a book store. If the author’s last name sta...
Today’s challenge was a rough one for me. Not because of the challenge itself, but because I fell into a trap in the Raku language that was giving me an off-...
Today was the first problem that I felt lent itself naturally to a for-loop. While there is nothing wrong with a for-loop in functional programming programmi...
We’re back again with another functional Raku solution! This problem requires some text parsing as well, which is where Raku (and its older brother Perl) rea...
Turns out I started blogging just in time for the Advent of Code, an annual series of daily challenges that run from December 1st to December 25th.
Back again with challenge 89! I was able to tackle this one the day it was released, but I doubt that will be the case going forward.
I have always been a fan of Perl (and its younger brother Raku), but, since leaving the Bioinformatics world, have not found any real-world scenarios to flex...