-🎄- 2021 Day 10 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

    Advent of Code challenge solutions (by flwyd)

    Raku 5133/2343, would've been a lot better if I hadn't spent 10 minutes to discover that I used next instead of last in my inner loop.

  • advent

    individual solutions at AoC (by martino-vic)

    Python 3 part1: https://github.com/martino-vic/Advent/tree/master/day14 got a silver star quite quickly by using nltk's ngrams. Part 2 tripped me up, works only for the easy input but for the proper one it gives me the wrong output, no idea why :/

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

  • adventofcode

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

    F# Getting used to F# now, simple solution, single loop for Part 1 and 2, not sure how much nested pattern matching is allowed.

  • adventofcode

    Answers to Advent of Code (by viceroypenguin)

  • advent-of-code

    Contains my solutions for the annual Advent of Code challenges (by david-crow)

    Python 834/852. Part 1. Part 2.

  • advent-of-code-2021

    Advent of Code 2021, solved using Rust (by klimesf)

  • aoc2021

    My solutions to Advent of Code 2021. (by ritobanrc)

    Rust. I found today surprisingly easy, much better than the last couple -- part 1 was quite simple, just keep a list of the open ones and close them as necessary. Part 2 should have been trivial to implement on top of that, but I wasn't correctly discarding the corrupted lines, and apparently sorting a list and finding the median without off-by-one errors is hard, so that took a while to debug.

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

  • deno_aoc

    🎄 Advent of code solutions written in TypeScript for Deno.

  • aoc2021

  • advent-of-code

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

    Part 1 - 16 lines

  • AOC2021

    Advent of Code 2021 (by dipeshkaphle)

    I got 4574/3796 and finished both in 31 minutes. Did it in rust, very pleased with myself lol. Link

  • advent_of_code

    Both parts on github

  • advent-of-code

    Collection for all the years of Advent of Code (2017 has its own repo) (by samhclark)

  • advent_of_code_2021

  • aoc2021

    Advent of Code 2021 (by chaosteil)

    Today was very relaxing! The hardest part in part 2 was figuring out how to discard existing lines without ballooning in complexity: Day 10

  • aoc2021

    Advent of Code 2021 Solutions (by nlowe)

    Go, 2815/3818

  • aoc2021

    solutions for advent of code 2021 (by tumdum)

    rust

  • adventOfCode-

    Advent of code solutions

    Python Full cleaned up version

  • adventofcode

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

    My Scala solution.

  • advent-of-code

    Perl No stacks, regexps ftw ;)

  • aoc2021

    Advent of Code 2021 on my homemade 16-bit CPU SCAMP (by jes)

  • aoc21

    Discontinued Advent of Code Solutions [Moved to: https://github.com/jakergrossman/aoc] (by jakergrossman)

    Solution in Common LISP. Nice breather after a rough few days :)

  • aoc

    Advent of code (by tudoanh)

    Solution on Github

  • adventofcode-2021

    javascript

  • aoc-2021-fsharp

    My F# solutions for Advent of Code 2021 https://adventofcode.com/2021

  • AdventOfCode2021

  • advent-of-code-2021

    AOC in go (by alextanhongpin)

  • advent-of-code-2021

    All solutions for the 2021 Advent of Code event. (by Bruception)

  • advent-of-code-2021

  • AdventOfCode2021

    Advent of code solutions for 2021 (by adhokshaja)

    Solution in Javascript

  • Advent-of-Code-2021

    solutions for the Advent of Code 2021 challenge (by ruais)

  • AoC

    Advents of Code in NASM x86_64 assembly (by JustinHuPrime)

    Part 1 and part 2 were both structurally similar, involving a stack. The main difference was how I handled newlines.

  • advent-of-haskell

    Haskell!

  • adventofcode2021

    our team's solutions for advent of code 2021 (by northflank)

  • aoc_rust_2021

  • advent-of-code-solutions

    My JS solutions for https://adventofcode.com/ (by AugustsK)

    Part 1

  • AdventOfCode

    Day 10 C#

  • advent

    Advent of code in Racket (by hencq)

  • aoc-2021

    Advent of Code 2021 with C#/LINQ (by jasonincanada)

    C# solution with a straightforward stack-based approach. I modeled sum types using abstract record on line 62 to handle the three different return values from the processing function

  • AdventOfCodeRust2021

    Code related to Advent of Code 2021 using Rust

    This one was just too much fun: solution in Rust

  • aoc2021

    Advent of Code 2021 (by sotolf2)

  • advent_of_code

    Advent of Code solutions (by domm)

  • AdventOfCode2021

    A collection for my Advent of Code (www.adventofcode.com) solutions using Nim, Julia, and Python programming languages (by genius487)

    Nim

  • adventofcode

    Part 1 and 2

  • adventofcode

    My AdventOfCode implementations (by nielsutrecht)

    Day 10 in Kotlin

  • adventofcode

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

  • AdventOfCode2021

    Day 10

  • advent-code

    Advent of Code is an Advent calendar of small programming puzzles

    Part1 and Part2 solution

  • aoc2021

    Advent of Code 2021 - my answers

    Haskell 3494/3702

  • advent-of-clojure

    clo clo clo

    Clojure, quite happy with this one, simply using a stack and the assumptions we know about the input to easily compare, filter and then match.

  • advent-of-code-2021

  • aoc2021

    My day 10 solution in python. The example for part 1 is broken but works for the example input. Pipeline back to passing

  • adventofcode

    My collection of Advent of Code solutions in a slightly overkill project setup 🙃👻 (by marcelblijleven)

  • aoc2021

    Advent of Code 2021 (by jenarvaezg)

  • adventofcode

    https://adventofcode.com/2021/ (by Torakushi)

  • advent-of-code

    In Common Lisp (by brunal)

  • AdventOfCode2021

    Advent of code 2021 (by marcodelmastro)

  • advent-of-code-2021

    Discontinued Code I used for solving https://adventofcode.com/2021 (by pavel1269)

  • Advent-of-Code-2021

    Made it through all 25 days of Advent of Code for the second time! (by Leftfish)

    Anyway, here's my stack-based Python solution. It could be made way shorter because there's actually no need to store data separately about valid lines (valid == not corrupt and empty stack), but I thought the verbose approach makes the solution a bit more understandable.

  • aoc2021

    Advent of Code 2021 (by Emerald-Element)

    Part 1 Part 2

  • aoc-2021

    Advent of Code 2021 in Rust (by kirillbobyrev)

    Pretty short stack-based Rust solution.

  • advent-of-code

    day10.go

  • advent_of_code_2021

    Solutions for Advent of Code 2021 (by ropewalker)

    Rust: https://github.com/ropewalker/advent_of\code_2021/blob/master/src/day10.rs

  • adventofcode

    Advent of Code 🎄 (by markus-k)

    My Rust solution: https://github.com/markus-k/adventofcode/blob/main/day10/src/main.rs

  • advent-of-code-2021

    AoC 2021, let's go! (by CodingNagger)

    * [Part 1 & 2](https://github.com/CodingNagger/advent-of-code-2021/blob/master/src/main/java/com/codingnagger/days/Day10.java)

  • adventofcode

    Advent of code solutions (by mathsaey)

  • AoC2021

    Advent of Code 2021 (by gereons)

  • adventofcode

    my tcl stuff for AoC 2018 - just fun (by eazyliving)

    Day 10, Part A

  • advent-of-code

    Advent of Code puzzle solutions (by ChrisDavison)

    All of 2021 so far: Single jupyter notebook

  • aoc_2021scala

    scala version aoc 2021

    github

  • aoc-2021

    Advent of Code 2021 (by mintopia)

    GitHub for logic. See also Day10 Task for getting the answer.

  • 2021-advent-of-code

    My attempts. (by joniek)

    Python 3, both parts on github.

  • adventofcode_2021

    GitHub Part 1 | GitHub Part 2

  • adventofcode

    adventofcode.com solutions (by linl33)

  • AdventOfCode2021

    Quite happy with the result of today's puzzle! Had to implement my own hacky stack but it was quite doable, did not miss python that much this time around :p

  • aoc2021

    Advent of Code, edition 2021, in Python (by kwentine)

    My solution in Python, using a stack to keep track of my needs for closure.

  • ack3

    ack is a grep-like search tool optimized for source code.

    I probably should've done. The syntax for that isn't quite as nice in Perl as in Raku. My thinking was that ‘middle’ is ‘median’ and we already did that, so it's just a single line a quick ack on this year's code will instantly find. I wasn't expecting it to start sticking pesky commas in there!

  • advent-of-code

    🎄Advent of Code🎄. In 2021 I use AoC to learn Go. (by saaska)

    Cool! I decided to learn Go, too. Went with strings.Index Pt1 , Pt2

  • advent_of_code

    All of my :star: Advent of Code solutions - using Elixir (by wasi0013)

    Easy! Solved using pattern matching: y2021/day_10.ex

  • advent2021

    advent woop woop (by gende0808)

    Part 1 Part 2

  • Advent-of-Code

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

    Solution using Stack in C#

  • adventofcode

    Advent of Code Repo for Zach Attakk (by ZachAttakk)

    Here's some sauce, and there's some thoughts (not very interesting this time).

  • Advent-Of-Code

    Part1 and part2 in Javascript

  • aoc21

    Source

  • AdventOfCode2021

  • sea

    Discontinued Sketches (by nuoxoxo)

    ungolfed

  • AdventOfCode2021

    c# Solution

  • Advent-of-code-2021-golang

    Advent of code 2021 Go solutions

  • It took me a loooong time to even understand what the problem said but once I did the solution was pretty easy! (in Python)

  • AdventOfCode

    Java. Github

  • AoC2021

    Advent of Code 2021 (by EragonpeerGynt)

    Elixir Quite a fun little exercise today. Code is still ugly as death, but I finally feal like I can enjoy the language freely. On other note, how could I solve the problem with me having to push char at the amstart of array without overloading process_line/2 ? (Line 5)

  • aoc2021

    Advent of Code 2021 (by xphade)

  • AdventOfCode

  • AdventOfCode2021

    Hopefully fairly readable code. Nothing radical, I used a stack like most other people. This and my solutions from previous days are on Github

  • AdventOfCode

    C#

  • aoc

    My solutions to the https://adventofcode.com/ (by vollcheck)

    My solution in Clojure. That was pretty easy for me, even though I'm still beginner!

  • aoc2021

    Blog

  • advent-of-code-2021

    Solutions for the Advent of Code 2021 puzzles (by lucashmsilva)

  • Advent_of_code_2021

    My solutions for Advent of Code 2021 (by berkentekin)

    GitHub link

  • advent-of-code

    My solutions to the Advent of Code (by aaronreidsmith)

    Scala. Used tail recursion and a closure for both parts. Used a List as my stack to utilize the O(1) complexity for head operations.

  • AdventOfCode

    Solutions to Advent of Code 2021 - 2023 (by statneutrino)

  • AdventOfCode

    My solutions to the Advent of Code puzzles. (by kemmel-dev)

  • AdventOfCode

    Sharing Advent of Code Exercises (by shouchen)

  • aoc-typescript

  • aoc-2021

    My Solutions to Advent of Code 2021 ( https://adventofcode.com/ ). I don't know which languages i'll use yet, probably some C, some Rust, some Python and maybe some C++ (by CaptainJack42)

    Rust solution using a FIFO-Queue.

  • Advent-of-Code

    bad christmas spaghett (by YelovSK)

    GitHub link

  • AdventOfCode

    GitHub

  • advent_of_code_2021

    Python - Happy that the deque fit part two.

  • adventofcode2021

    Advent of Code 2021 (by r0f1)

    Using a parser for part 1: See here

  • adventofcode2021

    My solutions to the Advent of Code 2021 (by bmatcuk)

    Fairly straight forward, part 2 below. Just used a stack to keep track of the closing characters that I'm expecting to see. At the end of the line, score the remaining characters in the stack.

  • advent-of-code-2021

    My solutions to advent of code 2021 in deno/TS (by J-Swift)

  • scrapyard

    Space for notes and experiments while learning the Rust programming language

    Solution in Rust

  • advent2021

    Advent of Code 2021 in Rust (by jeremylt)

  • advent-of-code-2021

    Advent of code 22021 (by RansomTime)

  • advent-of-code

    Advent of code solutions (by rbusquet)

  • AdventOfCode2021

    Yep. Boring straightforward stack usage. Why settle for anything more?

  • aoc

    Advent of Code Solutions (by joeyemerson)

  • AOC2021

  • code

  • AdventOfCode2021

    Advent of code solutiosn (by McSick)

  • adventofcode

  • advent-of-code

    Advent of code solutions (by tallbikeguy)

  • Advent-of-Code-2021

    GitHub/NavigationSyntax.java

  • advent-of-code

    Advent of code solutions (by Fubuchi)

  • AOC2021

    Advent of Code 2021 (by Rakicy)

  • AoC_2021

    SQL Solutions for Advent of Code 2021 (by tjbrinkman)

  • advent-of-code

    Solutions for Advent of Code puzzles (by aweneer)

    C# At first the description was confusing to me, but after doing the first part the second was easier. One tiny thingy I find funny is my solution needs to Reverse() the added symbols, because using creating new stack from another puts them the symbols in the new one in different order. GitHub

  • My Kotlin solution: [paste], [repo]

  • Advent-of-Code-2021

    Quick and dirty solutions for Part 1 and Part 2.

  • AdventofCode2021

  • aoc2021

    Advent of code 2021 in Kotlin! (by crnkofe)

  • AdventOfCode2021

    AdventOfCode 2021 solutions (by Meldanor)

  • advent-of-code-2021

  • AdventOfCode2021

  • advent-of-code-2021

    It's back. It's worse. (by mrwilson)

    Time for recursion and pretending-a-list-is-a-stack! (Source and tests)

  • 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 for Advent of Code (by Apreche)

  • Advent-of-code-2021

    Discontinued [Moved to: https://github.com/Toanuvo/Advent-of-code] (by Toanuvo)

  • advent_of_code_2021

    advent of code 2021 attempted with clojure (by jpe90)

  • AdventOfCode2021

    My solutions to https://adventofcode.com/2021 (by willkill07)

  • go

    The Go programming language

    See https://github.com/golang/go/wiki/SliceTricks for more fun with slices...

  • advent-of-code

    My solutions for the Advent of Code (by JesperDramsch)

    The two scorer functions live on Github.

  • AdventOfCode2021FSharp

    Solutions for Advent of Code 2021 in F#

    Here's my solution in F# with Jupyter Notebook. Used a recursive solution with a List as a stack.

  • advent-of-code

    Advent of Code puzzles (by KT421)

  • AoC-2021

    Day 10 in F#, getting got hold of the fold function :) day10.fsx

  • advent-of-rust-2021

  • advent-of-code-2021

    Advent of Code 2021 Java 17 (by zebalu)

    Java if you are interested.

  • adventofcode21

    2021 advent of code solutions

    Ruby; the hardest part of this was figuring out what exactly constituted "corrupt" vs. "incomplete." Spent way too much time trying to do an arduous recursive algorithm until I realized I had the problem wrong and I could just do the stack thing that I'd even seen before. Part 2 was weirdly easy once I got that.

  • aoc

    My Advent of Code solutions (by stonebr00k)

    T-SQL

  • aoc2021

    Advent of Code 2021 (by krmaxwell)

    I've done something similar to this in Python before, but this time the completion aspect did throw a little wrinkle into it. That taught me some new stuff about slices, sorting, and idiomatic implementations of a stack in Go. Full source including tests available on Github.

  • code-challenges

  • adventofcode

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

    Python solution only took me about an hour and that included typing, writing unit tests, etc.

  • aoc-2021

    I've got a similar yet different solution! I used a few helper function that are really match statements, plus a filter-map with a special case in the "return None;" branch and a sort. https://github.com/PurpleMyst/aoc-2021/blob/dc9feb525d3a13558b879468831b43ff103357ab/day10/src/lib.rs

  • AdventOfCode

    Advent of Code Solutions (by auxym)

  • advent

    Git mirror of https://bitbucket.org/sjl/advent (by sjl)

  • CodingExercises

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

    Rust

  • advent-of-code-kotlin-2021

    Advent of Code 2021 Challenge (by PhenixFine)

    Kotlin solution. I converted them to numbers ( like round brackets would be 1 and -1 ), and then just used the numbers to work with.

  • advent-of-code-ts

    Kotlin

  • advent-of-code-2021

    Advent of Code 2021 code challenge solutions. Kotlin this year! (by aormsby)

    kotlin solution, uses ArrayDeque, not bad

  • aoc

    Advent of Code (by c-kk)

  • AoC

    Advent of Code (by Marterich)

  • Advent-of-Code-2021

    Advent of Code 2021 solutions in Matlab (by j-a-martins)

  • AdventOfCode2021.jl

    Advent of Code 2021 in Julia

  • AdventOfCode

    C# solutions for Advent of Code (by Rekkonnect)

  • advent-of-code-2021

    Discontinued My solutions to https://adventofcode.com/2021 (by plan-x64)

  • AdventOfCode2021

  • AdventOfCode2021

    Advent of Code 2021 challenge: 13 different languages, one chosen at random every day! (by Qualia91)

  • SaaSHub

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

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