-🎄- 2022 Day 14 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
  • AoC2022

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

  • Very cool! I wrote day 2 in 6502 assembly and ran it in Vice. I wasn't aware of the llvm-mos simulator. Will definitely play with that soon.

  • adventofcode

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

  • F# - Liked the structure, but part 2 takes around 10 seconds, will work on alternate option after Dec 25

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

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

  • advent-of-code

    Advent of Code (by morgoth1145)

  • Python 3 44/45

  • aoc2022

  • AdventOfCode2022

  • Python (67/88)

  • advent-of-code

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

  • 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
  • aoc-2022

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

  • python 369 / 1021

  • adventofcode

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

  • Link to full solution

  • adventofcode2022

  • Golang 456/495

  • adventofcode

    Answers to Advent of Code (by viceroypenguin)

  • AdventOfCode

  • aoc2022

  • aoc-2022

  • Part 1

  • advent-of-code

    Coding Solutions for Advent of Code (by cs-cordero)

  • AdventOfCode2022

    Advent of Code 2022 in Go (by bendoh)

  • Golang solution This one wasn't super hard but go is definitely an awkward language to work in for some stuff, and there's not much in the way of speedy idioms to shorten the code. However, the code itself, once compiled, runs very fast and any slowdown I experience is from writing output to the terminal, which part2 doesn't lend itself to considering how wide it gets. Would love another iteration on this where I can put together proper visualizations because this one lends itself nicely to visualization.

  • adventofcode

    Advent of Code solutions (by jzhang113)

  • Ruby 2010 / 3400

  • advent

    advent of code (by jasontconnell)

  • Golang: https://github.com/jasontconnell/advent/blob/master/2022/14/main.go

  • hatchery

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

  • Here is my really terrible Rust solution to make you feel better about your solution. I really need to write a good grid data structure, surprised i've gone this long without having one.

  • aoc

    Advent of Code (by ramuuns)

  • aoc

    🎄 My solutions and walkthroughs for Advent of Code and more related stuff.

  • This reminded me of 2018 day 17, where you had to pour water instead of sand. I also remember making a visualization that year, might as well do it for today's problem too, the code should be almost identical.

  • aoc2022

    🎄 (by jenarvaezg)

  • aoc2022lisp

  • Advent-of-Code-2022

    My advent of code solutions for 2022 (by kermitnirmit)

  • adventofcode

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

  • sf

  • aoc-2022

    Advent of Code 2022 in Rust (by litpho)

  • AOC2022

  • My solution was very straight-forward so at first I wasn't really going to post it, but then I realized that might be exactly the reason to post it? Anyway, not much to say about it other than here it is: https://github.com/dclamage/AOC2022/blob/main/day14/src/main.rs

  • advent-of-code-2022

    Advent of Code Solutions 2022 (by aalekhpatel07)

  • roast

    🦋 Raku test suite

  • Raku solution: part 1 and part 2.

  • AdventOfCode2022

  • advent-of-code

    my solutions of puzzles in http://adventofcode.com/ (by gugod)

  • Perl -- both parts

  • advent

    Advent of Code (by fotoetienne)

  • Rust

  • AdventOfCode2022

  • 40 lines of code

  • advent-of-code

    Advent of Code solutions in JS (by leyanlo)

  • aoc2022

    Advent of Code 2022 - my answers

  • adventofcode

    Advent of code solutions (by mathsaey)

  • AdventOfCode

    Hacky solutions for lovely problems (by skarlman)

  • aoc2022

  • https://github.com/keithn/aoc2022/blob/main/days/Day14.cs

  • adventofkotlin

    Advent of Code in Kotlin

  • Kotlin: https://github.com/saidaspen/adventofkotlin/blob/main/src/main/kotlin/se/saidaspen/aoc/aoc2022/Day14.kt

  • adventofcode

    Python solutions to Advent of Code puzzles, https://adventofcode.com/ (by fuglede)

  • Python 3. Full solution

  • advent-of-code-2022

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

  • aoc2022

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

  • My solution in Haskell. I think I'm just gonna use Megaparsec going forward. Much easier to parse data that way than writing custom functions for it.

  • aoc-2022

    My solutions in Rust for Advent of Code 2022 (by jasonincanada)

  • Code: https://github.com/jasonincanada/aoc-2022/blob/main/day_14/src/main.rs

  • advent-of-code-jq

    Solving Advent of Code with jq

  • JQ

  • aoc

  • advents-of-code

    🎄🎁 Solutions for the yearly advent of code challenges

  • aoc-go

    A Golang tool for generating code for Advent of Code

  • advent-of-code-2022

    My solutions for the Advent of Code 2022 (adventofcode.com/2022) (by MaxArt2501)

  • advent-of-code-2022

  • JavaScript / Node.js

  • Kotlin

  • advent-of-code-2022

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

  • Rust🦀 github

  • aoc2022

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

  • aoc_2022

  • It's ugly, but it's mine and it works (Python)

  • AdventOfCode2022

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

  • AdventOfCode

  • Kotlin: https://github.com/nikolakasev/advent-of-code-kotlin-2022/blob/main/src/Day14.kt

  • advent-of-code-2022

  • Didn't like my first solution using an array and decided to implement a second one using a set instead. Building the cave could be cleaner but so could the rest.

  • aoc2022-25-in-25

    Advent of Code in 25 languages

  • D

  • Advent_Of_Code_2022

    My solutions to AoC 2022 (by PBearson)

  • Part 1. This just simulates the falling sand until a unit of sand goes out of bounds, then it stops.

  • adventofcode_2022

  • aoc2022

  • aoc2022

    My Advent of Code 2022 solutions! (by SourishS17)

  • advent-of-code

    Advent of code (currently with python 3.11) (by x0s)

  • Solution in python using hashable dataclasses part1 and part2

  • advent-of-code

    C++ solutions of advent of code (by onewings)

  • Plese be so gently to add a start on my AoC repo.

  • Solution (Part 1 & 2)

  • aoc-2022-kotlin

    AOC 2022 in Kotlin!

  • advent_of_code_2022

    Kotlin solutions to the Advent of Code 2022 puzzles (by Stefansfrank)

  • Solution

  • advent_of_code_2022

  • aoc2022

  • aoc2022

  • Go/Golang solution.

  • Advent

    Advent of Code (by berv63)

  • GitHub

  • a2tools

    Stuff I write for my Apple //c

  • So off we go read the input file twice, the first time to get the map boundaries, the second time to setup the bool array : part 1 using 2kB of RAM.

  • algorithmics

    Participation to algorithmic contests, in bulk.

  • Rust: code

  • aoc

    Advent of code (by nibarius)

  • Very interesting. I used a hashmap (data class holding x and y coordinate as key) to keep track of if a position was rock or sand. Then I had a recursive function that found where the sand would land.

  • advent-of-code-julia

  • Julia simple solution simulating the sand. Too much code duplication but nothing better comes to my mind.

  • aoc_2022

    My solutions to advent of code 2022 (by RHL120)

  • shitty n slow rust solution https://github.com/RHL120/aoc_2022/blob/master/solutions/day14.rs

  • AdventOfCode

    Solutions for Advent Of Code problems (adventofcode.com) (by randyppa)

  • Part 1 solution.

  • advent-of-code

  • advent-of-code-2022

    My solutions to Advent of Code 2022 problems (by juanplopes)

  • 26 lines of Python. Runs in 1.4s.

  • aoc2022

  • Rust targetting 8-bit Atari, with visualization.

  • adventofcode

    Solution implementations to https://adventofcode.com puzzles (by codertee)

  • This change made my second part runtime faster from 0.65 s to 0.41 s. Seems like iterating anything inside loop makes that loop much slower. Also learned about walrus operator precedence.

  • advent-of-code-2022

  • Code

  • adventOfCode

  • advent-of-code-2022

    Advent of Code 2022 (by mattbalmer)

  • Part 1

  • AoC2022

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

  • advent-of-code-2022

  • Typescript Runs part 2 in ~150ms

  • advent-of-code

  • advent-of-code-2022

  • Rust (~5ms total)

  • Slow dlang solution that simulates sand drops one grain at a time, one pixel at a time. Here's the main loop for part 2. The occupied[grain] = true assignment is due to the fact that the standard library doesn't have a hashset (to my knowledge), so instead I'm putting Points in an associative array while discarding the values.

  • Haskell (Probably very inefficient)

  • adventofcode

    adventofcode.com solutions (by linl33)

  • adventofcode

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

  • Advent_of_Code

    A repo revolving around attempting to solve the Advent of Code puzzles with single-statement t-sql (by adimcohen)

  • AdventOfCode2022

    My solutions to Advent of Code 2022 (by willkill07)

  • Advent-of-Code

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

  • AdventOfCode2022CSharp

  • C# solution using .NET Interactive and Jupyter Notebook. Used a recursive drop function to simulate a single grain of sand falling. Part 2 is not particularly efficient (~600ms). I went with a brute force approach solving it the same way as Part 1. But saw some clever "ray-casting" methods here in the comments!

  • noulith

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

  • Noulith 7/4

  • advent-of-code-2022

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

  • Advent-Of-Code-2022

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

  • Finally got some more time to solve a puzzle. This time in TypeScript. source

  • advent-of-code

    My advent of code solutions in C++ (by Strunzdesign)

  • advent-of-code

  • aoc

    My solutions to Advent of Code problems. Not good examples for anything. (by BrianDead)

  • With a hash (code):

  • Advent-of-Code-2022-Scala

    Attempting Advent of Code 2022 using Scala 3

  • Scala: github

  • advent_of_code

    Solutions to programming puzzles on Advent of Code (by Praful)

  • Solutions to parts 1 and 2 nearly identical and pretty much worked first time. Nothing clever here. This was far simpler than I thought it would be. I probably spent most time trying to think of a mathematical way of getting all points between p1 and p2. In the end, I just constructed two ranges. Full code here.

  • advent-of-code-go

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

  • adventofcode

    Mes solutions de adventofcode.com (by PhunkyBob)

  • It's on the initial post: https://github.com/PhunkyBob/adventofcode/blob/master/2022/day_14_visual.py

  • AdventofCode

    Advent of Code (by aaftre)

  • 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