Advent of Code F# — Day 16

ps. look out for all my oth­er solu­tions for Advent of Code chal­lenges here.


Day 16

See details of the chal­lenge here.

I also tried an imple­mem­ta­tion using string instead of bool[] and there is no dis­tin­guish­able dif­fer­ence in terms of per­for­mance. Now that we have the solve func­tion we can answer both part 1 and part 2 real­ly eas­i­ly.

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