-🎄- 2022 Day 13 Solutions -🎄-

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

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. adventofcode

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

  2. SaaSHub

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

    SaaSHub logo
  3. 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

  4. AdventOfCode

  5. AdventOfCode

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

    Python3, 31/31. Video. Code.

  6. 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.

  7. advent-of-code-2022

    My solutions for Advent of Code 2022 (by ypisetsky)

    Elixir 257/310 code

  8. advent-of-code-2022

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

  9. AdventOfCode

    Hacky solutions for https://adventofcode.com (by AllanTaylor314)

    Python [534/562]

  10. advent-of-code

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

    Ruby (759/701)

  11. advent-of-rust

    Solutions to the Advent of Code challenges in Rust!

    Rust solution (178/172)

  12. advent-of-code

    Advent of Code solutions in JS (by leyanlo)

  13. advent-code-challenges

    Typescript 1476/1274

  14. adventofcode

    Github

  15. advent-of-code

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

  16. adventofcode

    Answers to Advent of Code (by viceroypenguin)

  17. aoc2022

  18. aoc2022

  19. AdventOfCode2022

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

  20. advent-of-code-2022

    GitHub Link

  21. adventofcode

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

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

  22. AOC2022

    GitHub Link

  23. Advent-of-Code-2022

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

  24. adventofcode2022

    Python3 5506/4866 code

  25. aoc2022

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

    Livebook on Github

  26. adventofcode

    Advent of Code challenge solutions (by flwyd)

    Elixir, 2919/2773, code, thoughts

  27. 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)

  28. AdventOfCodeCSharp

    My AoC Solutions

  29. AoC

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

  30. aoc

    Advent of Code (by ramuuns)

  31. aocoracle

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

    Rust

  32. aoc-go

    A Golang tool for generating code for Advent of Code

  33. 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

  34. 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.

  35. advent-of-code-2022-no-imports-python3

    advent of code in python without importing any libraries

  36. AoC22

    Advent of Code 2022 (by ransoing)

  37. 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

  38. adventofcode_2022

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

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

  39. advent-of-code-solutions

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

    Shared code lib

  40. AOC2022

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

    Haskell, 8 ms.

  41. AdventOfCode2022

  42. aoc2022

  43. adventofcode

    Advent of Code (by rasmusfaber)

    Kotlin using Json deserialisation.

  44. aoc-2022-ts

    Advent of Code 2022 in TypeScript (by sergivillar)

  45. aoc-2022

    Discontinued Advent of Code 2022 (by andrikeev)

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

  46. adventofcode

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

    My Scala solution.

  47. aoc-2022

    Advent of Code 2022 in Rust (by litpho)

  48. AdventOfCode

    Hacky solutions for lovely problems (by skarlman)

  49. aoc-2022

    my haskell solution

  50. advent-of-code-2022

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

  51. AdventOfCode2022

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

  52. AdventOfCode2022

  53. advent-of-code

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

  54. aoc2022

  55. 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

  56. aoc2022

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

  57. aoc2022

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

  58. aoc-22

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

    Part2

  59. adventofcode

    Advent of code solutions (by mathsaey)

  60. adventofcode

  61. advent-of-code

    Advent of code stuff (by szaffarano)

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

  62. adventofcode

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

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

  63. aoc2022

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

    Consider this my Penance as extra challenge on day 13

  64. advent2022

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

  65. advent-2022

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

    My tree implem:

  66. aoc

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

    New version @GitHub.

  67. FuncSharp

    Functional programming in C#.

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

  68. advent

    advent of code (by jasontconnell)

  69. advent-of-code

    For sharing my adventofcode.com solutions (by kbielefe)

    Scala

  70. adventofcode

    Code

  71. aoc2022

  72. AoC2022

    rust

  73. aoc_2022

    Python

  74. aoc22

    Javascript

  75. AdventOfCodeHaskell

    solutions to advent of code problems (by saucedgarlic)

    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.

  76. 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:

  77. 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:

  78. AdventofCode2022

    My answers for Advent of Code 2022 (by poesraven8628)

  79. Advent-of-code-2022-golang

    2022 golang solutions of Advent Of Code

  80. advents-of-code

    🎄🎁 Solutions for the yearly advent of code challenges

  81. aoc2022

  82. adventofcode2022

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

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

  83. advent-of-code

    Go

  84. aoc2022

    My Advent of Code 2022 solutions! (by sourishsharma17)

  85. cpp-peglib

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

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

  86. 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

  87. AdventOfCode

    Python 3

  88. advent-of-code-2022

    Advent of Code solutions. (by tobyaw)

  89. aoc2022

  90. adventofcode

    Advent of code solution programs. (by bertptrs)

    Rust

  91. 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.

  92. advent-of-code

    My solutions for Advent of Code 2022, 2023 and 2024 (by Gobbel2000)

    Part 1

  93. adventofcode

  94. advent-of-code-2022

    Rust - code

  95. advent2022

    Advent of Code 2022 (by cdparks)

    Haskell

  96. aoc2022

    Advent of Code 2022 in Scala 3 (by vden)

  97. 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!

  98. 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

  99. advent-of-code-2022

    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 :

  100. 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 :)

  101. 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.

  102. AoC-2022

    Advent of code 2022 (by heijp06)

    Python: GitHub

  103. Advent-of-Code

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

    C# Source

  104. AoC2022

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

  105. mpc

    A Parser Combinator library for C

  106. AdventOfCode2022

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

    Solution available here.

  107. advent-of-code-2022-rust

  108. advent-of-code-2022

    Rust

  109. AdventOfCode-PS

    Advent of Code solutions in (mostly) PowerShell

    PowerShell

  110. adventofcode

  111. advent-of-code-2022

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

    TypeScript (Deno)

  112. 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:

  113. advent-of-code-2022

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

  114. advent-of-code

  115. adventofcode

    Advent of code solutions (by SuddenGunter)

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

  116. AoC2022

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

  117. advent-of-code-2022

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

  118. advent-of-code

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

    Kotlin

  119. advent-of-code-22

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

    Rust

  120. 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.

  121. adventOfCode

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

  122. advent-of-code-ts

    My solutions to AoC puzzles in Typescript (by rogisolorzano)

    Github

  123. AoC2022

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

  124. AdventOfCode2022

    My solutions to Advent of Code 2022 (by willkill07)

    Header + Source

  125. AdventOfCode

    My solutions to Advent of Code (by DanaL)

    The code at github!

  126. AdventOfCode

    My C++ solution, slightly spiffed up.

  127. hatchery

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

    Yet another Rust solution.

  128. adventofcode2022

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

  129. advent_of_code_2022

  130. aoc

    My Advent of Code solutions (by stonebr00k)

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

  131. advent-of-code

  132. advent-of-code

    Advent of Code solutions (by tkocmathla)

  133. advent-of-code-2022

    Advent of Code 2022 (by mattbalmer)

  134. aoc2022-25-in-25

    Advent of Code in 25 languages

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

  135. adventOfCode

  136. AoC2022

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

  137. adventofcode

    adventofcode.com solutions (by linl33)

  138. adventofcode

    Discontinued 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

  139. advent-of-code-2022

    Advent of Code 2022 in Kotlin (by sraaphorst)

    Kotlin also

  140. Advent-Of-Code-2022

    AoC Solutions in Idris (by daysleeperx)

    Really enjoyed parsing this one

  141. 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)?

  142. advent-of-code-go

    All 10 years of adventofcode.com solutions in Go/Golang (and a little Python); 2015-2024

  143. 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 :^)

  144. 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.

  145. aoc

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

  146. advent-of-code

  147. advent-of-code

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

  • -🎄- 2022 Day 24 Solutions -🎄-

    72 projects | /r/adventofcode | 23 Dec 2022
  • -🎄- 2022 Day 20 Solutions -🎄-

    69 projects | /r/adventofcode | 19 Dec 2022
  • -🎄- 2022 Day 11 Solutions -🎄-

    162 projects | /r/adventofcode | 10 Dec 2022
  • -🎄- 2022 Day 8 Solutions -🎄-

    208 projects | /r/adventofcode | 7 Dec 2022
  • -🎄- 2022 Day 6 Solutions -🎄-

    223 projects | /r/adventofcode | 5 Dec 2022

Did you know that Python is
the 2nd most popular programming language
based on number of references?