Advent of Code F# – Day 9

ps. look out for all my other solutions for Advent of Code challenges here.   Day 9 See details of the challenge here. The input for today’s challenge is a very long string like this: (6×9)JUORKH(10×13)LNWIKDMACM(126×14)(21×8)QLKUJNVVZIQGGFCJZMPHK(2×1)ZH(59×3)(38×14)KELEPIDYLCGJUBCXACRSOCEZYXLO… First, let’s see how we’re gonna parse this input. The approach I went with is to recursively split the input …

Advent of Code F# – Day 9 Read More »

Ransom Note problem in F#

A problem that has shown up multiple times in my preparation for technical interviews is the so called Ransom Note problem. To solve this in F# is pretty simple. In the interest of efficiency I decided to use a mutable Dictionary instead of the F# Map to store the no. of times a letter appears in the …

Ransom Note problem in F# Read More »

Yubl’s road to Serverless architecture – overview

part 1: overview <- you’re here part 2: testing and CI/CD part 3: ops part 4: building a scalable notification system part 5: building a better recommendation system Since Yubl’s closure quite a few people have asked about the serverless architecture we ended up with and some of the things we have learnt along the …

Yubl’s road to Serverless architecture – overview Read More »

Advent of Code F# – Day 6

ps. look out for all my other solutions for Advent of Code challenges here.   Day 6 See details of the challenge here. The input for today’s challenge looks like this: cmezkqgn nmzrgcft ydpndcps zjihhows kvptxsrx ubbvugwq … Since the only difference between the 2 parts of this challenge is how the characters in a column are …

Advent of Code F# – Day 6 Read More »

Advent of Code F# – Day 5

ps. look out for all my other solutions for Advent of Code challenges here.   Day 5 See details of the challenge here. Let’s start by adding a hash function that’ll take an input string and return the hexdecimal representation of its MD5 hash. From there, we can create an infinite sequence of hash values generated …

Advent of Code F# – Day 5 Read More »

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close