-🎄- 2022 Day 13 Solutions -🎄-

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

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

    :christmas_tree: Advent of Code (2015-2023) in C# (by encse)

  • aoc2022

    Advent of Code 2022 - my answers

  • https://github.com/ephemient/aoc2022/blob/main/hs/src/Day13Fast.hs https://github.com/ephemient/aoc2022/blob/main/kt/src/commonMain/kotlin/com/github/ephemient/aoc2022/Day13Fast.kt https://github.com/ephemient/aoc2022/blob/main/py/aoc2022/day13_fast.py

  • 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
  • AdventOfCode

  • AdventOfCode

    My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA

  • Python3, 31/31. Video. Code.

  • Advent-of-Code

    A repository holding all of my solutions to Advent of Code problems (by Noble-Mushtak)

  • Python 3, 27/22: Here is my Part 1 and Part 2 code.

  • advent-of-code-2022

    My solutions for Advent of Code 2022 (by ypisetsky)

  • Elixir 257/310 code

  • advent-of-code-2022

    actually publishing my solutions now that they're not redundant...

  • 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
  • AdventOfCode

    Hacky solutions for [Advent of Code](https://adventofcode.com), working on past problems (by AllanTaylor314)

  • Python [534/562]

  • advent-of-code

    Solutions for (some) Advent of Code challenges (2015-2020) http://adventofcode.com/ (by LiquidLemon)

  • Ruby (759/701)

  • advent-of-rust

    Solutions to the Advent of Code challenges in Rust!

  • Rust solution (178/172)

  • advent-of-code

    Advent of Code solutions in JS (by leyanlo)

  • advent-code-challenges

  • Typescript 1476/1274

  • adventofcode

  • Github

  • advent-of-code

    Repo of algorithms for solving Advent of Code challenges (by ekwoka)

  • adventofcode

    Answers to Advent of Code (by viceroypenguin)

  • aoc2022

  • aoc2022

  • AdventOfCode2022

    My solutions to the Advent of Code challenges from 2022. (by MatthewWest)

  • advent-of-code-2022

  • GitHub Link

  • adventofcode

    🎅 Repo where anyone can solve puzzles from adventofcode.com (by kolonialno)

  • Full code here: https://github.com/kolonialno/adventofcode/commit/13c09d85a322a4ca3f8901fa58119f46cbf45a2c

  • AOC2022

  • GitHub Link

  • Advent-of-Code-2022

  • Module with parse and compare, part 1, part 2.

  • adventofcode2022

  • Python3 5506/4866 code

  • aoc2022

    Advent of Code in Elixir, Julia, Python and Rust #aoc #adventofcode (by Lakret)

  • Livebook on Github

  • adventofcode

    Advent of Code challenge solutions (by flwyd)

  • Elixir, 2919/2773, code, thoughts

  • advent

    🎄 My Advent of Code solutions (by rossmacarthur)

  • Pretty proud of my Rust solution today. [GitHub link](https://github.com/rossmacarthur/advent/blob/trunk/2022/13.rs)

  • AdventOfCodeCSharp

    My AoC Solutions

  • AoC

    my personal repo for the advent of code yearly challenge (by Fadi88)

  • aoc

    Advent of Code (by ramuuns)

  • aocoracle

    Rust solutions to Advent of Code questions, with a twist.

  • Rust

  • aoc-go

    A Golang tool for generating code for Advent of Code

  • aoc

    My attempts at Advent of Code, along with a smaller helper library to streamline daily AoC tasks. (by hrushikeshrv)

  • Simple Python solution - https://github.com/hrushikeshrv/aoc/blob/main/2022/day13.py

  • aoc2022

    My solutions for Advent of Code 2022 (by tumdum)

  • Rust. Obs crashed and I didn't notice it until the end so here are partial recordings: twitch, youtube.

  • advent-of-code-2022-no-imports-python3

    advent of code in python without importing any libraries

  • AoC22

    Advent of Code 2022 (by ransoing)

  • aoc2022

    My solutions for Advent of Code 2022 problems written in Haskell (by ehllie)

  • Finally took out megaparsec for my Haskell solution today. Using Haskell in general feel like cheating today :p

  • adventofcode_2022

    My solutions in python for Advent of Code 2022 (by kezif)

  • Python: https://github.com/kezif/adventofcode_2022/blob/master/day13.py

  • advent-of-code-solutions

    My solutions to puzzles at https://adventofcode.com/

  • Shared code lib

  • AOC2022

    Advent of Code 2022, solved in Haskell (by MatthiasCoppens)

  • Haskell, 8 ms.

  • AdventOfCode2022

  • aoc2022

  • adventofcode

    Advent of Code (by rasmusfaber)

  • Kotlin using Json deserialisation.

  • aoc-2022-ts

    Advent of Code 2022 in TypeScript (by sergivillar)

  • aoc-2022

    Discontinued Advent of Code 2022 (by andrikeev)

  • My Kotlin solution part 1 & 2 I used recursion for parsing and comparison:

  • adventofcode

    Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala (by sim642)

  • My Scala solution.

  • aoc-2022

    Advent of Code 2022 in Rust (by litpho)

  • AdventOfCode

    Hacky solutions for lovely problems (by skarlman)

  • aoc-2022

  • my haskell solution

  • advent-of-code-2022

    back to rust, except i'll use libs where it makes sense (by jchevertonwynne)

  • AdventOfCode2022

    My solutions for Advent of Code 2022. (by SLiV9)

  • AdventOfCode2022

  • advent-of-code

  • 30 lines of code, lightly golfed, but mostly pretty readable.

  • aoc2022

  • Advent-of-Code

    A collection of my solutions for "Advent of Code" (by Nuhser)

  • Python 3: https://github.com/Nuhser/Advent-of-Code/blob/master/2022/day13.py

  • aoc2022

    Advent of Code, this time in Deno (by danvk)

  • aoc2022

    Trying to solve Advent of Code 2022 in 25 different languages (1 day = 1 language) (by GoldsteinE)

  • aoc-22

    Here are my solutions for the Advent of Code 2022 (by rogue-kitten)

  • Part2

  • adventofcode

    Advent of code solutions (by mathsaey)

  • adventofcode

  • advent-of-code

    Advent of code stuff (by szaffarano)

  • Rust: https://github.com/szaffarano/advent-of-code-2022/tree/master/rust/src/day-12

  • adventofcode

    Solutions for problems from AdventOfCode.com (by bhosale-ajay)

  • TypeScript - Took some time to make TypeScript happy about all the types.

  • aoc2022

    Advent of Code 2022 - if I have time lol (by jabis)

  • Consider this my Penance as extra challenge on day 13

  • advent2022

  • php in 2ms. Happy accident was that I wrote the right compare function for part1, so part2 was trivial.

  • advent-2022

    https://adventofcode.com/2022 (by tudorpavel)

  • My tree implem:

  • aoc

    Advent of Code - mscha's Perl 6 solutions (by mscha)

  • New version @GitHub.

  • FuncSharp

    Functional programming in C#.

  • I am using FuncSharp, but that's just to be able to employ functional constructs.

  • advent

    advent of code (by jasontconnell)

  • advent-of-code

    For sharing my adventofcode.com solutions (by kbielefe)

  • Scala

  • adventofcode

  • Code

  • aoc2022

  • AoC2022

  • rust

  • aoc_2022

  • Python

  • aoc22

  • Javascript

  • AdventOfCodeHaskell

    solutions to advent of code problems (by c-coward)

  • Haskell. Implementing nested lists is fun! The parser was surprisingly straightforward (except for an issue where it was expecting an extra newline at the end of my input), and the bulk of the problem was handled by implementing Ord instances for my data types.

  • rune

    An embeddable dynamic programming language for Rust. (by rune-rs)

  • Late start today as well. I really thought today would be the day that I'd have to abandon my goal of no heap allocations. But, luckily I had an arena allocator available that I could fairly easily adapt to store data on the stack. And with some tweaks we have today's solution:

  • aoc2022

    My own personal overengineered helpers to solve AoC problems in Rust (by udoprog)

  • Late start today as well. I really thought today would be the day that I'd have to abandon my goal of no heap allocations. But, luckily I had an arena allocator available that I could fairly easily adapt to store data on the stack. And with some tweaks we have today's solution:

  • AdventofCode2022

    My answers for Advent of Code 2022 (by poesraven8628)

  • Advent-of-code-2022-golang

    2022 golang solutions of Advent Of Code

  • advents-of-code

    🎄🎁 Solutions for the yearly advent of code challenges

  • aoc2022

  • adventofcode2022

    https://adventofcode.com/2022 (by CueXXIII)

  • I started the SimpleParser class in february when I was doing older advent of code puzzles.

  • advent-of-code

  • Go

  • aoc2022

    My Advent of Code 2022 solutions! (by SourishS17)

  • cpp-peglib

    A single file C++ header-only PEG (Parsing Expression Grammars) library

  • I used yhirose's PEG (parsing expression grammar) libraryfor parsing.

  • adventofcode

  • Python readable easy-to-understand easy-to-implement parser (Recursive Descent) While one could argue this style of parser is overkill here, I always found it a strategy for an easy, "don't have to think too hard" parser and scales well for complex recursive grammars

  • AdventOfCode

  • Python 3

  • advent-of-code-2022

    Advent of Code solutions. (by tobyaw)

  • aoc2022

  • adventofcode

    Advent of code solution programs. (by bertptrs)

  • Rust

  • advent-of-code

    My solutions to the Advent of Code (by aaronreidsmith)

  • Scala using µJson. Really happy with how concise this is. I was able to parse everything into a Packet class that extends Ordered, which gives us the compare function. So once that was implemented recursively according to the rules we were given, I was able to jsut call .sorted for part 2.

  • advent-of-code

    My solutions for Advent of Code 2022 (by Gobbel2000)

  • Part 1

  • adventofcode

  • advent-of-code-2022

  • Rust - code

  • advent2022

    Advent of Code 2022 (by cdparks)

  • Haskell

  • aoc2022

    Advent of Code 2022 in Scala 3 (by vden)

  • advent-of-code

    Advent of Code (by morgoth1145)

  • Yeah, I was playing around with structured pattern matching myself and drastically shortened my code. I do like some of the choices u/4HbQ made though, I may continue refactoring this!

  • too-many-lists

    Learn Rust by writing Entirely Too Many linked lists

  • Yes, for some reason, I remembered Learn Rust With Entirely Too Many Linked Lists and decided I don’t want to implemented nested structures :D

  • Dlang solution, using JSON parsing from the standard library. At first I misunderstood the problem and kept getting failures in the second pair. I thought [2,3,4] vs [4] meant that the right list will run out of items after having successfully compared 2 and 4, but then I learned that this would only happen if 2 and 4 were equal (thanks to this thread). This made me realize that a binary comparison wasn't enough and pushed me to write the convoluted ternary comparison function below :

  • a2tools

    Stuff I write for my Apple //c

  • Here's the external-sort version, and the smart version thanks to /u/large-atom. I still prefer the floppy version :)

  • AdventOfCode2022CSharp

  • C# solution using .NET Interactive and Jupyter Notebook. A bit of a tricky one today. Like many, used JSON parsing using the new System.Text.Json library. Then used a custom Comparer for the OrderBy LINQ method for Part 2.

  • AoC-2022

    Advent of code 2022 (by heijp06)

  • Python: GitHub

  • Advent-of-Code

    Advent of Code repos... I guess? (by SuperFes)

  • C# Source

  • AoC2022

    My solutions to Advent of Code 2022 https://adventofcode.com/2022 (by PetchyAL)

  • mpc

    A Parser Combinator library for C

  • AdventOfCode2022

    Discontinued In C11 with a pinch of GLib (by Zi0P4tch0)

  • Solution available here.

  • advent-of-code-2022

  • Rust

  • AdventOfCode-PS

    Advent of Code solutions in (mostly) PowerShell

  • PowerShell

  • adventofcode

  • advent-of-code-2022

    Joel Eisner's completed TypeScript code challenges for "Advent of Code" 2022 (by joeleisner)

  • TypeScript (Deno)

  • aoc2022

    Discontinued Advent of Code 2022 (by ednl)

  • Complete program runs in 463 µs on Apple M1, 2.61 ms on Pi 4. See comments at the top of the source file for how I measured. My comparison function:

  • advent-of-code-2022

    My solutions for the Advent of Code 2022 in Python. (by ngerritsen)

  • advent-of-code

  • adventofcode

    Advent of code solutions (by SuddenGunter)

  • Full solution: https://github.com/SuddenGunter/adventofcode/pull/56/files

  • AoC2022

    Solutions to Advent of Code 2022 puzzles. (by SwampThingTom)

  • advent-of-code-2022

  • Started really late today but here it is: Part 1 + 2 [JavaScript, JS]

  • advent-of-code

    Programming challenges from https://adventofcode.com/ (by valiant-code)

  • Kotlin

  • advent-of-code-22

    🎄 My personal Advent of Code '22 solutions, done in 🦀 (by aquelemiguel)

  • Rust

  • json

    Strongly typed JSON library for Rust (by serde-rs)

  • Pretty proud of this one, concise and readable. Granted, I couldn't resist using serde_json to bypass all the parsing code.

  • adventOfCode

    Advent of code solutions, probably mostly in C++, but maybe in Rust in the (near) future. (by osalbahr)

  • advent-of-code-ts

    My solutions to AoC puzzles in Typescript (by rogisolorzano)

  • Github

  • AoC2022

  • Any suggestions would be welcome. My day13.py code here

  • AdventOfCode2022

    My solutions to Advent of Code 2022 (by willkill07)

  • Header + Source

  • AdventOfCode

    My solutions to Advent of Code (by DanaL)

  • The code at github!

  • AdventOfCode

  • My C++ solution, slightly spiffed up.

  • hatchery

    Various incubating projects that i lay on to keep warm (by quat1024)

  • Yet another Rust solution.

  • adventofcode2022

  • Nice! I ended up doing basically the same thing yesterday! SWI Prolog

  • advent_of_code_2022

  • aoc

    My Advent of Code solutions (by stonebr00k)

  • My original solution was not as elegant, and definitely less fun :).

  • advent-of-code

  • advent-of-code

    Advent of Code solutions (by tkocmathla)

  • advent-of-code-2022

    Advent of Code 2022 (by mattbalmer)

  • aoc2022-25-in-25

    Advent of Code in 25 languages

  • I'm using a different language for each of the days. Check it out!

  • adventOfCode

  • AoC2022

    Merry Christmas, y'all !!! (by tobstern)

  • adventofcode

    adventofcode.com solutions (by linl33)

  • adventofcode

    My solutions to the Advent of Code challenges (by djotaku)

  • My code is here https://github.com/djotaku/adventofcode/blob/66d74babd2ed37f56858096bc5598149448b6839/2022/Day_13/Python/solution.py

  • advent-of-code-2022

    Advent of Code 2022 in Kotlin (by sraaphorst)

  • Kotlin also

  • Advent-Of-Code-2022

    AoC Solutions in Idris (by daysleeperx)

  • Really enjoyed parsing this one

  • aoc-2022

    Python 3 solutions to the Advent of Code 2022 coding puzzles (https://adventofcode.com/2022). (by charlescochran)

  • Python 3 https://github.com/charlescochran/aoc-2022/blob/master/day_13.py I originally wrote a comparator function which pretty much worked exactly how the part 1 problem is specified, but then I realized that with sufficient hacking, you can coerce the packets to sort correctly using Python's built-in alphabetical sorting. This involves 1. wrapping all the integers in a bunch of lists such that they are all nested the exact same amount and 2. doing some string substitutions to handle certain edge cases. My program solves part 2 in about 30 ms (CPU time). I'm curious how that timing compares to anyone who just did a normal sort with the custom comparator function developed in Part 1 (using Python)?

  • advent-of-code-go

    All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022

  • advent_of_code

    My solutions to Advent of Code: https://adventofcode.com/ (by Teajey)

  • Posting my solution for the first time here because I'm kinda proud of it :^)

  • adventofcode-2022

    solutions for advent of code 2022 (by camaron-ai)

  • Hi u/Yuras20 I tested the program with the example and my input. However, I just picked a random solution here and tested with their data. Both our programs gave the same solution.

  • aoc

    KlongPy Advent of Code (AoC) solutions (by briangu)

  • advent-of-code

  • advent-of-code

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub 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