-🎄- 2022 Day 5 Solutions -🎄-

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

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • I'm learning F# this year and also used a recursive approach... and fold in some areas.

  • AoC

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

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

  • I'm not saying mine is good, but fmt.Sscanf and slices.Clone would help make your code shorter. https://github.com/alsm/aoc2022/blob/master/day5/day5.go

  • advent-of-code-2022

    🎄 My solutions to Advent of Code 2022. (by v-shenoy)

  • Still somewhat happy with the solution. Source

  • advent_of_code_2022

    Discontinued My solutions to Advent of Code 2022 https://adventofcode.com/2022 [Moved to: https://github.com/PetchyAL/AoC2022] (by PetchyAL)

  • It was absolutely all about the parsing here, i'm pretty happy with my parser overall. I thought today was a really fun one

  • adventofcode

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

  • F# - Single fold and single iteration so far for all the days so far. Active pattern to parse and act.

  • advent-of-code-2022

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

  • SaaSHub

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

    SaaSHub logo
  • AdventOfCode

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

  • Python, 193/185

  • adventofcode

  • AdventOfCode

    My solutions for all years of Advent of Code in Python 3 and Rust (by benediktwerner)

  • Python 3 116/125

  • Advent-Of-Code-2022-Solutions

    Advent Of Code 2022 Solutions by Dinesh G

  • advent-of-code

    My solutions to Advent of Code problems (by bcc32)

  • aoc-2022

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

  • Python 2472/2297

  • AdventOfCode

    C# Advent of Code project (by SWCreeperKing)

  • C# 1173/1051

  • advent-of-code

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

  • Advent-of-Code

    Advent of Code (by michaeljgallagher)

  • 395 / 386

  • aoc_2022

    Discontinued Bad 2022 Advent of Code solutions (by ClementTsang)

  • Today's language of choice is Haxe, solution can be found here

  • aoc2022apl

    Advent of Code 2022 solutions in Dyalog APL

  • Dyalog APL (78/45) ⎕IO←1 ⋄ p q←{⍵⊆⍨×≢¨⍵}⊃⎕NGET'p5.txt'1 p←~∘' '¨↓(0 1 0 0⍴⍨≢⊃p)⌿⍉↑1↓⊖p ⋄ q←⍎¨¨'\d+'⎕S'&'¨q f←{(⍺↓¨⍵),¨⍺⍺¨⌽⍺↑¨⍵} ⋄ g←{(-⊃⍺)0⍺⍺f@(1↓⍺)⊢⍵} ⊃∘⌽¨⊃⌽g/(⌽q),⊂p ⍝ part 1 ⊃∘⌽¨⊃⊢g/(⌽q),⊂p ⍝ part 2

  • aoc2022

    Advent of Code 2022 on SCAMP (by jes)

  • advent-of-code

    Advent of Code solutions in JS (by leyanlo)

  • AdventOfCode

  • adventofcode

    Answers to Advent of Code (by viceroypenguin)

  • Advent-of-code-2022

  • Python 3, nothing fancy, but I thought it looked nice, repo at: https://github.com/Misterguruman/Advent-of-code-2022/blob/master/day5/day5.py

  • noulith

    *slaps roof of [programming language]* this bad boy can fit so much [syntax sugar] into it

  • Noulith 5/5

  • advent-of-code-2022

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

  • AdventOfCode2022

  • aoc2022

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

  • Repo Link

  • aoc-go

    Advent of Code - Go edition 🐿 (by hkennyv)

  • adventofcode

    Advent of Code solutions (by jzhang113)

  • Ruby 2535/2975: Code

  • advent-of-code-wim

    Wim's solutions for https://adventofcode.com/ puzzles

  • Python (repo). I was particularly pleased with how quick the parsing was.

  • Advent-of-Code-2022

  • Solution

  • AdventOfCodeHaskell

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

  • Haskell. Had my solution coded up way before I even began to figure out parsing the crates. This might've been easier to just brute force over the raw string/text, but I like what I came up with!

  • aoc-2022

    Solutions for Advent of Code 2022 (by kupych)

  • Elixir - as with everyone else who didn't manually break it out, the bulk of the effort was spent parsing the file

  • advent-of-code

    My solutions to Advent of Code (by daniel-dara)

  • part1.py

  • AdventofCode2022

    My answers for Advent of Code 2022 (by poesraven8628)

  • advent-of-code-2022

  • advent-of-code-2022

  • aoc_2022

  • advent

    My advent of code code (by hherman1)

  • Solution

  • AdventOfCode2022

    My solutions to Advent of Code 2022 (by willkill07)

  • Header file (defining types): https://github.com/willkill07/AdventOfCode2022/blob/main/days/Day05.hpp Source file: https://github.com/willkill07/AdventOfCode2022/blob/main/days/Day05.cpp

  • hexagony

    A two-dimensional, hexagonal programming language.

  • It's got a larger symbol set, but it's still relatively code-like. If you want some obtuseness, try out Hexagony where you code in a hexagonal grid, using a hexagonal memory, or Malbolge, who's entire goal is to be as hard to code in as possible.

  • advent-of-code

    Discontinued My solutions for Advent of Code (2019-2022) (by dannyvankooten)

  • Python ~40ms

  • adventofcode

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

  • My Scala solution.

  • adventOfCode2022

    Discontinued Javascript Solutions for Advent Of Code 2022 (by agardes)

  • Spent way too much time trying to parse input. Javascript solution

  • advent-of-code-2022

  • C++

  • advent-of-code-2022

    2022's Advent Of Code (by ollien)

  • aoc

    Advent of Code (by ramuuns)

  • advent-of-code-2022

  • Rust

  • aoc_n64

    advent of code 2022 for n64

  • aoc2022

    🎄 (by jenarvaezg)

  • AoC2022

  • Nice use of fold there, I used recursion myself instead.

  • advent-of-code

    All my advent of code projects (by snowe2010)

  • AoC2022

    A collection for my Advent of Code (https://adventofcode.com/) solutions using the Nim programming languages (https://nim-lang.org/) (by genius487)

  • Nim

  • advent_of_code

  • Advent-of-Code-2022-solutions

    https://adventofcode.com/ (by infinity1729)

  • Tries to write an elegant solution in Python https://github.com/infinity1729/Advent-of-Code-2022-solutions/blob/main/D5Q1.py

  • advent-of-code-2022

    This is my Laravel project for Advent of Code 2022. I play around with Laravel and PHP. Some answers, variables, functions, methods, etc. may be dum or rushed. (by MarkoKaartinen)

  • advent-of-code-2022-erlang

    Discontinued Advent of code 2022 - implemented in Erlang

  • Erlang

  • adventofcode

    ES6 solutions to Advent of Code puzzles. (by surgi1)

  • Vanilla JavaScript / ES6

  • AdventOfCode

    Advent of Code adventures in C++ (by bobolpwnz)

  • CodingExercises

    A variety of coding exercises for practice and to learn new languages

  • Rust - 101 LOC (excluding unit tests).

  • advent-of-code

  • aoc-2022

    Advent of Code 2022 in Rust (by litpho)

  • advent-of-code

    Advent of Code 2022 (by AdrienPoupa)

  • TypeScript: https://github.com/AdrienPoupa/advent-of-code/blob/main/2022/05/solution.ts

  • AdventOfCode

  • C#

  • aoc2022

    Advent Of Code 2022 - Rust. (by mvduijn)

  • advent-of-code-2022

    My solutions to Advent of Code 2022 🎄 (by rm206)

  • adventOfCode2022

  • Full Code: [Github](https://github.com/sotsoguk/adventOfCode2022/blob/main/python/day05/day05.py

  • aoc-2022

    Advent of Code 2022 (In Elixir) (by starcraft66)

  • Part one

  • advent-of-code-2022

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

  • full solution

  • aoc2022_clj

    Advent of Code 2022 in Clojure

  • Clojure (GitHub)

  • AoC

    Advents of Code in NASM x86_64 assembly (by JustinHuPrime)

  • Part 1 was where I went through the pain of parsing the input - this involved multiple passes over the stack diagram and was generally quite painful. This was also the first time I had to use the stack to store temporary values - figuring out which registers could be used was complex enough that I'd prefer to have the compiler do it for me. The actual simulation of the moving boxes could be implemented directly, but required dynamic allocation, which I also did for the first time. Note that I can't free an allocation, but we shouldn't have large enough allocations to the point where memory leaks become an issue. And then I spent a while debugging. I found out that:

  • adventofcode2022

  • Prolog

  • aoc2022

    My advent of code submissions for 2022 (by aldeka)

  • adventofcode

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

  • aoc

    Advent of Code Solutions (by hannahjayne)

  • Python 3 https://github.com/hannahjayne/aoc/blob/main/2022/05/05_solution.py

  • advent-2022

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

  • aoc2022

    Advent of Code 2022 (by gustafe)

  • advent-of-clojure

    clo clo clo

  • advent-of-code-2022

    My solutions for Advent of Code 2022 (by ypisetsky)

  • my code

  • aoc2022

    Advent of Code, 2022 edition ⭐ (by kwentine)

  • Python, using regular expressions for parsing and double-eneded queues to model crate stacks.

  • adventofcode22

  • Python: https://github.com/BastiaanRudolf/adventofcode22/blob/main/day5/solution.py

  • adventofcode

    Advent of code solutions (by mathsaey)

  • advent-of-code-2022

  • adventofcode2022

    Advent of Code 2022 solutions in Elixir (by j4nk3e)

  • My Day 05 in Elixir

  • aoc-2022

    🎄 Advent of Code 2022 in Rust 🦀 (by andy2mrqz)

  • Advent-of-Code

    Advent of Code problems solved in Python. (by derailed-dash)

  • My Day 5 code on GitHub

  • aoc2022lisp

  • Advent-of-Code

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

  • AoC2022

    Discontinued My solutions to Advent of Code 2022 [Moved to: https://github.com/d12bb/AdventOfCode] (by d12bb)

  • I'm doing different language each day, all solutions here.

  • AoC2020

    Advent Of Code, yearly puzzle extravaganza in the days leading up to Christmas. (by GoldenQubicle)

  • c#, repo here. One of the rare occasions where I decided to manipulate the input by hand, essentially rotating the crates so the stacks just become strings. So the example input becomes;

  • advent-of-code-julia

  • Julia using DataStructures Stack

  • adventofcode

    Advent of Code challenge solutions (by flwyd)

  • Elixir, thoughts, full code. Today's elixir:

  • AdventOfCode

  • Elixir Code

  • AdventOfCodeGlobal

    Regroups all advent of code I've done in typescript

  • Day 05 Solution

  • advent-of-code

    Advent of Code 2021 (by pavlin-policar)

  • My Day 5 solution in Haskell

  • advent-of-code

    solutions for Advent of Code (by micod-liron)

  • Solution for day 5

  • adventofcode2022

    My solutions for the Advent of Code 2022 (by david-nandrean98)

  • advent-of-code

    My personal advent of code repo (by soupglasses)

  • aoc-2022

    Discontinued AOC 2022 solutions (Golang/Python) (by 17ms)

  • Go/Golang

  • aoc-go

    A Golang tool for generating code for Advent of Code

  • adventofcode

    Advent of Code 🎄 (by markus-k)

  • advent_of_code_2022

    Advent of code 2022 (by HendrikPetertje)

  • advent-of-code

  • Part 1 Part 2

  • advent-of-code

    My Advent of Code solutions through the years - mostly JS (by davidsharp)

  • JavaScript

  • aoc2022

    ngn/k (by chrispsn)

  • ngn/k, my answers repo.

  • advent2022

  • Rust: https://github.com/vstepanyuk/advent2022/blob/main/src/day05.rs

  • AOC2022

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

  • Haskell, runs in 10 ms.

  • aoc2022

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

  • I'm getting closer and closer to using MegaParsec for those silly input data format parsing. That being said, I ended up liking my today's solution:

  • Advent-of-code-2022-golang

    2022 golang solutions of Advent Of Code

  • adventofcode2022

    Advent of Code 2022 - solutions in human readable PHP code (by mariush-github)

  • aoc_2022

    My solutions to Advent of Code 2022 written in Ruby

  • Code: Github

  • advent_c

    All of the advents of code in pure C, without libraries

  • C, this was the first day that parsing the input took significantly longer than solving the problem. I'm happy with the approach I ended up taking, though. [Github]

  • aoc-2022

    Advent of Code 2022 (by ateska)

  • Part 2

  • advent_of_code

    Advent of Code solutions (by domm)

  • I've hardcoded the locations of the crates in the input string, which makes the code quite readable, IMO: https://github.com/domm/advent_of_code/blob/main/2022/05_1.pl

  • advent-of-code-2022

  • aoc2022

    Discontinued Advent of Code 2022 (by ednl)

  • Advent-of-Code-2022

    Advent of Code 2022 in Rust (by cgubbin)

  • Rust (repo). Fairly simple, I'm really enjoying the input parsing bit of the challenges.

  • aoc22

    Advent of code 2022 solutions in F# (by lboshuizen)

  • F# github

  • aoc-2022

    2022 Advent of Code in Clojure 🎄 (by giacomocavalieri)

  • My solution in Clojure

  • advent_of_code

    My solutions for each of the days of advent of code (by ddavis3739)

  • advent-of-code-2022

  • Typescript solution: https://github.com/j-tegen/advent-of-code-2022/blob/main/src/day5/index.ts

  • AoC2022

    Advent of Code 2022 (by MartijnJonkers)

  • advents-of-code

    🎄🎁 Solutions for the yearly advent of code challenges

  • AoC2022

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

  • aoc-2022-kotlin

    AOC 2022 in Kotlin!

  • aoc

    Advent of Code (by gkwaerp)

  • Advent-of-Code

    Exercises from https://adventofcode.com/ (by AritonV10)

  • Advent-of-Code-2022

    Advent of Code 2022 - in Rust! (by Killavus)

  • Rust

  • AdventOfCode2022

    Optimised dotnet solutions for Advent Of Code 2022 (by Timmoth)

  • C# efficiency > reuse Source

  • advent-of-code

    🎄 My C# solutions for the advent of code puzzles (2015-2022) (by pBouillon)

  • Full solution including the tests available on GitHub

  • advent-of-code-2022

  • advent_of_code_2022

  • It's not very pretty or elegant, but my code is on Github

  • advent-of-code

    My solutions to the Advent of Code (by aaronreidsmith)

  • Scala. Parsing wasn't as hard as I thought it would be using transpose and then just filtering non-alphanumeric characters. I initially parsed to a Map[Int, mutable.Stack[Char]] but then that bit me in part 2 when I would have to "reset" it (dang mutability!). So instead I parse to Map[Int, String] and just build the mutable stacks twice.

  • AdventOfCode

  • code

  • aoc2022

  • Likewise. https://github.com/UnicycleBloke/aoc2022/blob/main/day05/day05.cpp.

  • advent-of-code

    My Advent of Code answers (by tcsullivan)

  • See the code here. Later today I'll document how the code works.

  • AdventOfCode2022

    My advent of code 2022 solutions made in python (by wutata)

  • Solution here (in python): https://github.com/wutata/AdventOfCode2022/blob/main/day05/day5-1.py

  • Advent-of-Code-2022

    Made it again! (by Leftfish)

  • Python 3: github

  • aoc-2022

    Advent of Code 2022 journey with Rust (by jokr-1)

  • Not sure about this solution in RUST for today with linked lists...

  • aoc2022

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

  • Advent-of-Code

    My repository for holding my solutions to the Advent of Code challenges. More info: https://adventofcode.com/ (by MichaelRol)

  • Here is my solution

  • adventofcode

  • java: github

  • adventofcode_php

  • Advent-of-Code

  • Rust (making use of easily parsing text to structs using FromStr trait): code

  • AoC2022

  • Haskell

  • advent-of-code

    My solutions for advent of code. (by Urbansson)

  • Github

  • Advent-of-Kotlin-2022

  • Kotlin solution

  • aoc2022

    My submissions to Advent of Code 2022. Learning Julia for the first time. (by hraftery)

  • aoc2022

  • advent-of-code-2022

    AoC 2022 in Kotlin :) (by Avataw)

  • Kotlin: Pretty happy about my refactoring :)

  • aoc2022

    Advent of Code 2022 (C#) (by p88h)

  • ... In any case, ended up with way more lines than should be pasted here (or necessary): goto github

  • aoc2022

  • Solution: github

  • AdventOfCode2022

    hacking advent of code 2022 in Rust (by weichslgartner)

  • Rust and Python

  • aoc-2022

  • aoc-2022-in-kotlin

    AoC 2022 in Kotlin 😺

  • Kotlin. Finally used a few tricks from the Kotlin blog. Using java.util.Stack to simulate stacks was funny in part 1 and required intermediate reversing stack in part 2.

  • advent-of-cobol

    Advent of Code in COBOL.... WHY?

  • COBOL - source

  • advent-of-code-2022

    Solutions to Advent of Code 2022 puzzles https://adventofcode.com/2022 (by Lysander6)

  • Day 5 solution in Rust🦀: github (raw).

  • AdventOfCode

    Advent of code daily challenge (by WilliamLP)

  • You can check my solutions from last year https://github.com/WilliamLP/AdventOfCode/tree/master/2021 I made it up to day 14 / 17 and used that WITH RECURSIVE / UNNEST / ARRAY_AGG pattern a lot.

  • aoc-excel-2022

    A collection of my excel solutions for Advent of Code 2022

  • Solutions posted on my github.

  • advent_of_code_2022

  • AOC2022-in-Fortran

  • Part 1, Part 2

  • AoC-2022

    Advent of Code 2022 (by clalos)

  • Zig Part 1: https://github.com/clalos/AoC-2022/blob/main/day5a/main.zig Part 2: https://github.com/clalos/AoC-2022/blob/main/day5b/main.zig

  • swift

    The Swift Programming Language

  • It does exist, for RangeReplaceableCollection.

  • Advent-of-Code

  • Works grood.

  • adventofcode

  • aoc2022

  • aoc

  • adventofcode

    https://adventofcode.com/ challenge solutions in JavaScript (by FriendlyUser1)

  • JavaScript https://github.com/FriendlyUser1/adventofcode/blob/main/2022/day5/stacks.js

  • adventofcode

  • Misc-DSA-Practice

  • My attempt with Python. Parsing using re, modeling stacks using defaultdict + deque...pretty fun all told (says the guy using batteries included, high level language :).

  • aoc2022

    Advent of Code 2022 (by xphade)

  • aoc_2022

  • Rust

  • SIMD + C

  • aoc2022

    Advent of Code 2022 (by lupari)

  • Scala 3 Late for the party, but decided to add my map-based solution https://github.com/lupari/aoc2022/blob/main/src/main/scala/assignments/Day05.scala

  • aoc

    Advent of code (by nibarius)

  • My Kotlin solution have similarities with many other solutions.

  • Advent-of-Code

    C# solutions for Advent of Code puzzles (by DjolenceTipic)

  • Very ugly, very hardcoded, very dirty, and a really quick C# solution. Will clean up it in the next couple of days.

  • adventofcode2022

    Solutions for Advent of Code 2022 (by seanhandley)

  • My actual solution is here: https://github.com/seanhandley/adventofcode2022/tree/main/ruby/day_5

  • aoc2022

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

  • aoc22

    Solutions for Advent of Code 2022 in Rust (by morlinbrot)

  • HashMap for parsing stacks and Vec> for operations. Full code here.

  • AdventOfCode2022

  • advent_of_code

  • Not a fan of my solution for today, would love to simplify it in some way... GitHub

  • aoc2022

    Advent of Code solutions for 2022, implemented in Rust (by ajenkinski)

  • My Rust solution. I went for readability.

  • AoC

    Advent of Code (by Marterich)

  • advent-of-code

    Solutions for adventofcode.com (by alexandru-dinu)

  • advent-of-code-2022

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

  • AdventOfCode2022

  • advent-of-code-2022

  • Ruby solutions for day 5, part 1 and part 2.

  • Advent-Of-Code-2022

    My solutions for the Advent of Code 2022 (by vtallen)

  • advent_of_code_2022

    advent of code 2022 solutions in rust (by scratchmex)

  • Rust solution: https://github.com/scratchmex/advent_of_code_2022/blob/main/day05/src/main.rs. I attach only the parsing code

  • adventofcode

    My advent of code solutions - https://adventofcode.com (by pengi)

  • advent-of-code

    Discontinued My attempts of the challenges in https://adventofcode.com/ (by fregru)

  • Python (Part 1 and 2): Github

  • AdventOfCodeCSharp

    Advent of Code Puzzle Solutions in C# (by jbush7401)

  • AoC22

  • Flexible parsing with two regexes: https://github.com/jeffreygroneberg/AoC22/blob/main/src/main/java/day05/SupplyStacksCrane.java

  • aoc

    Advent of Code solutions in rust and go (by protiumx)

  • Go solution abusing of slices

  • aoc2022

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

  • Full Code

  • adventofcode2022

  • githbub

  • aoc2022

    Advent of Code 2022 in TypeScript (by minidmnv)

  • advent-of-code-2022

    Solutions to the 2022 Advent of Code challenge. (by LiamMcRoe)

  • Today’s solution in C#, including generic parser.

  • advent-of-code-2022

    Advent of Code 2022 Solutions in Python (by Fiddle-N)

  • adventofcode2022

  • Python 3- Parts 1 & 2: GitHub. No imports, 11 lines, 434 characters.

  • advent-2022

    advent of code 2022 solutions in rust

  • Practicing my Rust skills with AoC Day 5 Link to Github

  • I'm new to java, so any feedback would be great for me <3

  • advent-of-code

  • Source

  • 2022AdventofCode

  • GitHub

  • adventofcode2022

    My solutions for Advent of Code 2022, written with TypeScript + Node (by Jacob-Lockwood)

  • I was pretty proud of my TypeScript solution today. My parser accepts any number of columns and rows, and the solution for part 2 was as easy as removing a .reverse():

  • advent_of_code

    https://adventofcode.com (by hannesschaletzky)

  • TypeScript Solution

  • AoC-2022-in-Bash

    Advent Of Code 2022 in bash

  • My solution for part 1&2 (on github) in readable bash script logging each step to stdout.

  • Advent-of-Code

    This repo contains my solutions to the advent of code event. Learn more about advent of code at https://adventofcode.com (by AhmarTheRed)

  • aoc

    Advent of code challenges (by nathanielhall)

  • advent-of-code

    Advent of Code puzzles (by KT421)

  • AoC2022

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

  • aoc2022

  • advent_of_code_2022

    my solutions to the 2022 advent of code (by finalcut)

  • Mine is a bit longer https://github.com/finalcut/advent_of_code_2022/blob/main/day5/src/main.rs

  • AoC2022

    Solutions to the Advent of Code (AoC) 2022 (by gequalspisquared)

  • advent-of-code-2022

  • Learning Haskell now. Any pointers on my solution? https://github.com/drewhayward/advent-of-code-2022/blob/master/day05/stack.hs

  • adventOfCode2022

    My solutions to the Advent of Code challenge 2022 (by GravelX)

  • Another python solution, I somehow found an easy way to parse the input right away! github

  • advent-of-code

    Solutions for Advent of Code challenge (by rabuf)

  • Python

  • advent_of_code

    🎄 (by breakthatbass)

  • GitHub

  • advent-of-code-2022

    Advent of Code 2022 - https://adventofcode.com/2022 (by aormsby)

  • Kotlin solution, fun with some extension functions.

  • AdventOfCode

    Solutions to Advent of Code programming puzzles. (by otto-schnurr)

  • Swift (Github)

  • swift-algorithms

    Commonly used sequence and collection algorithms for Swift

  • #!/usr/bin/env swift sh import Algorithms // https://github.com/apple/swift-algorithms typealias Label = Character typealias Instruction = (amount: Int, source: Int, destination: Int) struct StandardInput: Sequence, IteratorProtocol { func next() -> String? { return readLine(strippingNewline: false) } } let sections = StandardInput() .compactMap { $0 } .split(separator: "\n") .map { Array($0) } let stacks = parseStacks(from: sections[0]) let instructions = parseInstructions(from: sections[1]) print(apply(instructions, to: stacks, oneAtATime: true)) print(apply(instructions, to: stacks, oneAtATime: false)) // MARK: - Private private func parseStacks(from section: [String]) -> [[Label]] { let crates = section.map { let start = $0.index($0.startIndex, offsetBy: 1) return Array($0.suffix(from: start).striding(by: 4)) } let stackCount = crates[0].count var stacks: [[Label]] = Array(repeating: [Label](), count: stackCount) crates.reversed().forEach { for (index, label) in $0.enumerated() { stacks[index].append(label) } } return stacks.map { $0.filter { $0.isLetter } } } private func parseInstructions(from section: [String]) -> [Instruction] { return section.map { let tokens = $0.dropLast().split(separator: " ") return (Int(tokens[1])!, Int(tokens[3])! - 1, Int(tokens[5])! - 1) } } private func apply( _ instructions: [Instruction], to stacks: [[Label]], oneAtATime: Bool ) -> String { var stacks = stacks instructions.forEach { let cargo = Array(stacks[$0.source].suffix($0.amount)) stacks[$0.source] = stacks[$0.source].dropLast($0.amount) stacks[$0.destination].append( contentsOf: oneAtATime ? cargo.reversed() : cargo ) } return String(stacks.map { $0.last! }) }

  • advent-of-code

    Advent Of Code Solutions (by sreedevk)

  • Ruby

  • aoc22

    My solutions to the Advent of Code 2022 great puzzles (by seulvagem)

  • At first I did a solution using lists instead of vectors for both parts, but it was very clear after I finished it that vectors were the best data structure for the job, as it implements the stack abstraction (peek, pop, conj) but also provides subvec, which makes the crate-mover-9001 implementation much cleaner in my opinion.

  • AOC-2022

  • advent-of-code

    My (incomplete) solutions to the Advent of Code yearly challenges. (by Chrinkus)

  • Here's the repo.

  • advent-of-code-2022

    Typescript solutions to Advent of Code 2022 (by collin-b1)

  • Typescript

  • advent-of-code

  • Javascript: https://github.com/Brela/advent-of-code/blob/main/JS/dailyAdventChallenges/day5.js

  • advent-of-code-2022

    ✨ my advent of code 2022 repo ✨🦀 (by ifacodes)

  • Here's mine, both parts in Rust

  • advent-of-code

    Advent of Code Solutions by Georg Begerow Language: rust 2021 (by gbegerow)

  • Day 5 Rust 2022_05

  • Advent-Of-Code-2022

    AoC Solutions in Idris (by daysleeperx)

  • [Github](https://github.com/daysleeperx/Advent-Of-Code-2022/blob/main/day05/SupplyStacks.idr)

  • Back again with an overengineered, DI and testable C# solution, GitHub.

  • snippets

  • I got a late start on my Common Lisp solution for Day 5. Fortunately, part 2 fell out of my part 1 solution.

  • Advent-Of-Code-2022

    My solutions for Advent Of Code 2022. Every day is written in another language, chosen randomly. (by Jomy10)

  • Zig

  • AdventOfCode-Day5-SupplyStacks

    C# .NET Core console application that solves the AdventOfCode Day 5 puzzle - Supply stacks

  • C# solution using Stacks, nothing fancy :) https://github.com/hariharansubramanian/AdventOfCode-Day5-SupplyStacks/blob/master/Program.cs

  • advent-of-code

  • practice-c

    My sandbox for learning to program in C + Advent of Code 2022.

  • Advent-of-Code

    code snippets for the Advent of code (by BeardyMike)

  • That makes sense. I've been working on the assumption that my code isn't leaving my GitHub. So, #HARDCODE ALL THE WAY BABY!!!

  • aoc2022

    Advent of Code 2022 (by pbruyninckx)

  • Inspired by other solutions I made mine a little bit cleaner (github)

  • chapel

    a Productive Parallel Programming Language

  • Chapel: a serial version and sketch of a parallel one

  • AdventofCode_Day5_Part1

    Advent of Code Daily Challenge

  • Part 1

  • AdventOfCode

  • advent-of-code

  • part 1 and 2

  • advent

    Solutions to https://adventofcode.com/ (by tsenart)

  • advent-of-code-ts

    My solutions to AoC puzzles in Typescript (by rogisolorzano)

  • a2tools

    Stuff I write for my Apple //c

  • Part 1: Most of the code is parsing the data. Had a bit a fun using "functions" (aka GOSUB/RETURN) instead of GOTOs, making the thing a little bit less hard to read.

  • aoc2022

    My Advent of Code 2022 solutions! (by SourishS17)

  • Advent_of_Code_2022

    Advent of Code 2022 exercises in PHP (by chipotle)

  • advent-of-code

    My advent of code solutions (by osipxd)

  • Kotlin, Bash + Git (yes, here is screencast)

  • advent-of-code

    Advent of Code 2021 (by TenViki)

  • Code: https://github.com/TenViki/advent-of-code/tree/main/2022/src/05 Visualization: https://vikithedev.eu/aoc/2022/05/

  • adventofcode2022

    Advent of Code 2022 Puzzles (by robing29)

  • Code: https://github.com/robing29/adventofcode2022/tree/main/aoc2022/aoc2022-day5

  • AdventofCode

  • Source

  • 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

  • -🎄- 2022 Day 18 Solutions -🎄-

    74 projects | /r/adventofcode | 17 Dec 2022
  • -🎄- 2022 Day 22 Solutions -🎄-

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

    67 projects | /r/adventofcode | 18 Dec 2022
  • -🎄- 2022 Day 24 Solutions -🎄-

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

    124 projects | /r/adventofcode | 20 Dec 2022