# AdventOfCode

## Advent of Code F# – Day 15

ps. look out for all my other solutions for Advent of Code challenges here.   Day 15 See details of the challenge here. Today’s challenge is pretty straight forward, and a brute force approach would have suffice – try every t from 0 to inifinity and return the first t that satisfies this equation for all …

## Advent of Code F# – Day 14

ps. look out for all my other solutions for Advent of Code challenges here.   Day 14 See details of the challenge here. Today’s challenge is very similar to that of Day 5, but the requirements for a valid hash value is different this time. As before, we’ll start by defining a hash function that will accept a string and return …

## Advent of Code F# – Day 13

ps. look out for all my other solutions for Advent of Code challenges here.   Day 13 See details of the challenge here. Today’s challenge involves solving two separate problems: counting set bits in an integer level order tree traversal For the first problem, I recommend reading through this blog post which covers several approaches and optimizations for this …

## Advent of Code F# – Day 12

ps. look out for all my other solutions for Advent of Code challenges here.   Day 12 See details of the challenge here. The input for today’s challenge looks like this: cpy 1 a cpy 1 b cpy 26 d jnz c 2 jnz 1 5 cpy 7 c … This is very similar to Day 23 …

## Advent of Code F# – Day 11

ps. look out for all my other solutions for Advent of Code challenges here.   Day 11 See details of the challenge here. Today is perhaps the first AOC challenge that is really challenging and required a lot of thought, and I really enjoyed it! First, let’s model the problem domain. and we’ll need a way to …

## Advent of Code F# – Day 10

ps. look out for all my other solutions for Advent of Code challenges here.   Day 10 See details of the challenge here. The input for today’s challenge looks like this: bot 171 gives low to bot 4 and high to bot 84 bot 1 gives low to bot 117 and high to bot 81 bot 82 …

## 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 8

ps. look out for all my other solutions for Advent of Code challenges here.   Day 8 See details of the challenge here. The input for today’s challenge looks like this: rect 1×1 rotate row y=0 by 10 rect 1×1 rotate row y=0 by 10 rect 1×1 rotate row y=0 by 5 rotate column x=43 by …

## Advent of Code F# – Day 7

ps. look out for all my other solutions for Advent of Code challenges here.   Sorry for the delay in getting this post out today, I enjoyed some really fine Ramen with some of the lovely people I worked with at Yubl and only managed to find time to do the challenge and write this post late in the …

## 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 …

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