Advent of Code F# – Day 16

ps. look out for all my other solutions for Advent of Code challenges here.

 

Day 16

See details of the challenge here.

I also tried an implememtation using string instead of bool[] and there is no distinguishable difference in terms of performance. Now that we have the solve function we can answer both part 1 and part 2 really easily.

        let part1 = solve 272 input
        let part2 = solve 35651584 input

 

Links

 

Learn to build Production-Ready Serverless applications

Want to learn how to build Serverless applications and follow best practices? Subscribe to my newsletter and join over 5,000 AWS & Serverless enthusiasts who have signed up already.

1 thought on “Advent of Code F# – Day 16”

  1. Pingback: F# Weekly #52, 2016 – Sergey Tihon's Blog

Leave a Comment

Your email address will not be published. Required fields are marked *