Our great sponsors
-
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.
-
advent-of-code-dev-2021
Interactive development environment and runner for Advent of Code challenges
-
adventofcode
Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala (by sim642)
-
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.
-
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)
The code itself was very simple. Was tempted to use a shortlex list newtype, but ended up writing the comparison function by hand. https://github.com/Tarmean/aoc2022/blob/master/library/Day13.hs
I was feeling weary, so I just worked directly on the strings:
Even if you're not logged in, you should still be able to read part 1. If you go to https://adventofcode.com you should be able to access part 1 of all of the currently-released 2022 problems.
/u/taylorfausak Is it possible to make the auto-post link to the right AoC day (e.g. https://adventofcode.com/2022/day/13) instead of being a self-post? Or, if hitting the right day is too difficult, could it at least point to calendar for the the right/current year (e.g. https://adventofcode.com/2022)?
The input can either then be parsed using TemplateHaskell - https://github.com/morteako/aoc2022/blob/main/src/lib/Day/Day13TH.hs or put in the code as shown here, https://github.com/morteako/aoc2022/blob/7983885f226466cdbfa998f875abb3e9f0e11a6e/src/lib/Day/Day13.hs (and adding brackets around and also ,. Could be avoided by using some nifty QualifiedDo/RebindableSyntax (: .