Advent of Code 2022 day 15

This page summarizes the projects mentioned and recommended in the original post on /r/haskell

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • AdventOfCode2022

    Solutions to all 25 Advent of Code 2022 in Rust 🦀 Less than 100 lines per day, total runtime of less than 1 second. (by AxlLind)

  • advent

    Advent of Code complete solution archive and common library (by glguy)

  • There's a little more code than I want to paste here, so https://github.com/glguy/advent/blob/main/solutions/src/2022/15.hs

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • advent-of-code-y2022

    Advent of Code year 2022

  • aoc2022

  • Advent2022

    Advent Of Code 2022

  • https://github.com/Sheinxy/Advent2022/blob/master/Day_15/day_15.hs ```hs module Main where

  • advent-of-code-2022

    A repository for the Advent of Code 2022 (by Althar93)

  • Still learning here, limited use of library functions; got to about 4s before calling it a day : HERE

  • advent-of-code

    Advent of Code solutions (by mcwitt)

  • part2 input = xb * gridSize + yb where sensors = fmap (uncurry sensor) input points = List.nub $ catMaybes $ intersection <$> (sensors >>= leftDiags) <*> (sensors >>= rightDiags) gridSize = 4000000 isValid (V2 x y) = 0 <= x && x <= gridSize && 0 <= y && y <= gridSize [V2 xb yb] = filter (\p -> isValid p && not (any (inRange p) sensors)) points ``` complete code

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts