-🎄- 2021 Day 2 Solutions -🎄-

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

Our great sponsors
  • Sonar - Write Clean Python Code. Always.
  • Scout APM - Truly a developer’s best friend
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Zigi - Delete the most useless function ever: context switching.
  • advent_of_code

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

    Is your code on github? Mine is at https://github.com/Praful/advent_of_code/

  • AoC

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

    that is very similar to what i do https://github.com/Fadi88/AoC/blob/master/2021/day02/code.py

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • scratch-www

    Standalone web client for Scratch

    My working [Scratch](https://scratch.mit.edu/) solution ;) :

  • aoc2021

    Solutions for Advent of Code 2021 (by frerich)

  • adventofcode

    Advent of Code Repo for Zach Attakk (by ZachAttakk)

    Here's the entire file. If the printGood and printDebug looks weird, it's because I have a utils class that uses colorama to make my terminal output colourful. Another thing I added to make it nice but doesn't really do anything.

  • aoc21

    Rust version with a single function. I wonder if at this line I can parse the integer value directly. I didn't find a way to do it yet.

  • adventofcode

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

    Yes. Also you don't have to do it twice like he did. YOu could it once, assign it to a variable and then use the index. See: https://github.com/djotaku/adventofcode/blob/779ff300bf793b6ef016059148c511e18fa7444a/2021/Day_02/Python/solution.py line 37

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

  • AdventOfCode2021

    Should be

  • adventOfCode

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

    My solution for day 2: https://github.com/plebcity/adventOfCode/blob/advent-2021/src/main/kotlin/adventofcode/y2021/day2.kts

  • AdventOfCode

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

    Python 8/6th :) Video of me solving: https://youtu.be/e3_iiz_6bFw

  • aoc2021

    Advent of Code 2021 Solutions (by nlowe)

    Go, 382 / 230

  • AdventOfCode2021

  • advent-of-code

    Python: https://github.com/kratsg/advent-of-code/blob/master/2021/day02.py

  • adventofcode

    Answers to Advent of Code (by viceroypenguin)

  • aoc2021

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

    Rust, nothing special here, not particularly fast (I initially thought aim should be a vector and lost some time because of it). The error handling could be a bit cleaner, I might fiddle with that for a bit so I don't have to put .unwraps and .expect and panic! everywhere.

  • Advent-of-Code-2021

    My solutions for Advent of Code 2021 (by kermitnirmit)

    Sad - this one didn't have much room for cleverness. simple loop and if/elif/else checks to figure out what to do. Solution

  • Advent-of-Code

    Advent of Code (by michaeljgallagher)

    Nothing fancy again, just tried to do it as quickly as possible

  • Advent_of_Code_in_Pascal

    My solutions to the Advent of Code, in Free Pascal

    Pascal 4710/5060

  • AdventOfCodeCSharp

    My AoC Solutions

    Updated (calculates both answers in a single pass): https://github.com/Bpendragon/AdventOfCodeCSharp/blob/5fc105352b8f8c9e0ff19554ead0921514bb632c/AdventOfCode/Solutions/Year2021/Day02-Solution.cs

  • AdventOfCode2021

    Solutions to all 25 AoC 2021 problems in Rust :crab: Less than 100 lines per day and under 1 second total execution time! :christmas_tree:

    Link to full solution

  • AoC2021

    Programs for Advent of Code 2021 (by Perska)

    C# https://github.com/Perska/AoC2021/blob/master/AoC2021/Days/Day02.cs I saw that my solution was very close to the 32-bit limit and got worried it overflowed. Turns out it didn't.

  • advent-of-code

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

    My C Solution

  • Advent-of-Code

    🎄 My Advent of Code solutions 🎄 (by 89netraM)

    That's such a cool parser! I did something similar but it's a bit to clunky to be useful, and not as versatile. I just might switch over to using yours.

  • adventofcode

    advent of code entries (by JaumeGreen)

    Done as a C# interactive notebook, rest of my solutions in here.

  • AdventOfCode2021

    My solutions for AoC 2021 (by narimiran)

  • advent-of-code

    Link to code

  • aoc2021

  • aoc2021

    GitHub: aoc2021_day2

  • Advent-of-Code

    Me solving the wonderful problems here https://adventofcode.com/2021/events (by losecontrol4)

    my solutions on github

  • AdventOfCode2021

  • advent-of-code-2021

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

  • Advent_of_Code_2021_Solutions_Java

    Personal AoC/2021 Solutions in Java

  • AdventOfCode

    Advent Of Code (by Jo0)

  • AdventOfCode

    Kotlin, the mapping step is unnecessary maybe, but otherwise straightforward. https://github.com/valiant-code/AdventOfCode/blob/master/2021/src/main/kotlin/Day2.kt

  • AOC2021

    Advent of Code 2021 (by nathanvy)

  • AdventOfCode2021.jl

    Advent of Code 2021 in Julia

  • adventofcode2021

    Solutions to Advent of Code 2021 (by a-mroz)

    Python: https://github.com/a-mroz/adventofcode2021/blob/master/day2.py

  • advent-of-code

    Advent Of Code Solutions (by sreedevk)

  • advent-of-code

    AOC solutions 🎄🍵 (by masmeert)

    day02 of doing only one-liners and I already failed for the second part, it would have been a huge mess. The first part is pretty messy as well so if anyone can improve on it I would be very grateful ! https://github.com/masmeert/advent-of-code/blob/master/2021/day02/main.py

  • AdventofCode

  • adventofcode

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

    My Scala solution.

  • Advent-of-Code-2021

    Node solution part 1

  • advent-of-code-2021

    Advent of Code 2021 Submissions (by mariotacke)

  • aoc2021

    Advent of code 2021 solutions, in varied languages (by A-UNDERSCORE-D)

  • AOC2021-BQN

    new repository is at razetime/aoc.

    All Solutions so far

  • advent-of-code

    Advent of Code! (by peckb1)

    Kotlin - Day 2

  • AoC2021

    advent of code 2021 (by yaxley-peaks)

  • AdventOfCode_2021_Rust

    My Advent of Code 2021 solutions in Rust.

    GitHub

  • AoC2021

    Advent of Code 2021 in F# (by kimvais)

    +1, Quite similar to my solution

  • AoC

    Advent of Code submissions (by tomribbens)

    My Python solution: https://github.com/tomribbens/AoC/tree/main/2021/day02

  • AoC21

    advent of code 2021 (by BobekJosef)

    My humble C++ solution.

  • AOC-2021

    go https://github.com/Jtramey/AOC-2021/blob/master/calendar/day-02/day02.go

  • Advent-of-Code

    Last year I built a Vector type that has instances for typical typeclasses. That came in really handy today (although I needed a few minutes to remind my self what I did last year).

  • advent-of-code

    Advent of Code 2021 puzzles (by KT421)

  • AdventOfCode-2021

    I always overengineer my solutions somehow :D https://github.com/Rykee/AdventOfCode-2021/blob/master/src/main/java/rhykee/solver/task02/Task02Solver.java

  • aoc-2021-rust

  • advent-of-code-2021

    AOC in go (by alextanhongpin)

  • aoc

    Advent of Code solutions in ANSI C (by undnull)

    C my beloved

  • AdventOfCode2021

    And a link to a PDF with benchmarks for three different methods: https://github.com/guslipkin/AdventOfCode2021/blob/main/02/AoC2021-Day02-SpeedEdition.pdf

  • aoc2021

    Advent of Code 2021 (by UnicycleBloke)

    Nice. I figured we'll be parsing lines a lot so have written a function to parse the input into a vector of tuples: https://github.com/UnicycleBloke/aoc2021/blob/master/day02/day02.cpp.

  • Katas

    Katas I've done (by TeoDiaz)

    Github AOC/2021/Day2

  • advent-of-code

    My solution in Rust:

  • advent-of-code

    Solutions for Advent of Code challenge (by rabuf)

    Rust

  • advent-of-clojure

    clo clo clo

    Very similar to mine, clearly the platonic Clojure solution to the problem.

  • AoC2021

    Advent of Code 2021. A Rusty submarine? (by wilkotom)

  • aoc2021

    Advent of Code 2021 - my answers

    Similarly in Rust, parsing to

  • aoc2021

  • aoc-2021

  • aoc2021

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

  • Nim

    Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).

    It seems that Arch repos contain nim 1.4.8 which doesn't have scanTuple in std/strscans as far as I can see.

  • advent_of_code_rust

    Rust

  • advent-of-code-2021

    Python3 Part 1 & Part 2 using some Regex.

  • aoc-2021-fsharp

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

    F# TDD https://github.com/bainewedlock/aoc-2021-fsharp/blob/master/aoc-2021-02/Solution.fs

  • advent2021

    I publishing my solutions on github as well: https://github.com/duarteocarmo/advent2021

  • XIL

    My own toy language XIL implement an instruction module for this input part 1:

  • advent-of-code-2021

  • aoc2021

    Advent of Code 2021 (by jenarvaezg)

  • adventofcode2021

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

  • aoc

    Advent of Code - Rust edition 🦀 (by hkennyv)

  • Day-2-AdventofCode

    AOC - Depth Puzzle

  • AoC

    Advent of Code (by Marterich)

  • aoc2021

    Solution: https://github.com/Skarlso/aoc2021/tree/main/day02 Blog post: https://skarlso.github.io/2021/12/02/aoc-day2/

  • advent_of_code_2021

  • AdventOfCode2021

    Advent of code 2021 (by marcodelmastro)

  • Advent_Of_Code

    My solution for the Advent of Code challenges in various languages. (by Dullstar)

    Python (unlike many of the solutions posted thus far, this does not require 3.10)

  • advent-of-code-2021

    Solutions for Advent of Code 2021. (by mnajda)

  • Advent_of_Code_2021

    My solutions to Advent of Code 2021 (by neelakantankk)

    Simple Python-based solution yet again.

  • advent-of-code

    Advent of Code, 2021 (by whyisjake)

  • adventofcode

    adventofcode.com solutions (by linl33)

  • aoc2021

    Hi :) unfortunately I might not have the answers to your questions, but I'm also new to Zig and if you want to compare I'm putting my solutions here: https://github.com/vesche/aoc2021

  • aoc

    my solutions to Advent of Code puzzles (by MarcoLucidi01)

  • AdventCodeCalendar

    Another way in PHP https://github.com/HolyHugo/AdventCodeCalendar/blob/main/day2.php

  • AdventOfCode2021

    trying to do as many oneliners this year as i can, this is what i came up with for Day 2 :D https://github.com/ckainz11/AdventOfCode2021/blob/main/src/main/kotlin/day2/Day2.kt Part 1 is not really smooth, didnt know how to reduce a map in a good way XD

  • rust-2021

  • adventofcode

    Advent of Code challenge solutions (by flwyd)

    In Raku using a grammar

  • advent-of-code

  • advent-of-code

    My Advent of Code adventures! (by LyleiLanar)

    Here's my solution: I love unnecessary long code in Ruby :D

  • aoc2021

  • advent-of-code

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

    not the most inspired solution

  • EDIT: full code (with loading script)

  • aoc2021

    here is the link to github Now let's look at the snippet (Command is an enum containing well, directions/commands)

  • AoC-2021

    F# solution for day 2: day02.fsx

  • Advent-of-code-2021-golang

    Advent of code 2021 Go solutions

  • AdventOfCode2021

  • advent-of-code

    Part 1 Part 2

  • AoC-2021

    Haskell solutions advent of code 2021 (by lboshuizen)

    day2

  • A simple python solution using pandas!

  • advent-of-code-2021

    Have fun with Clojure on Christmas 2021. (by hiepph)

    My Clojure solution, including a short explanation.

  • aoc

    Advent of Code solutions (by sjmulder)

    Just took a look at your solution on GitHub. Nice observation of just using the command's first character in the switch-case. I also have not thought about just using the stdin with a good old scanf. First AoC for me and already learning a lot of things! :)

  • AdventCode

  • adventofcode2021

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

  • aoc2021

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

    My solution in Python, using list reduction and declarative specification of moves.

  • advent-of-code

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

    [Part 1](https://github.com/katzuv/advent-of-code/blob/solve/2021-02/2021/d02/p1.py), [Part 2](https://github.com/katzuv/advent-of-code/blob/solve/2021-02/2021/d02/p2.py).

  • programming-challanges

    My attempts at solving various programming challenges. Leetcode, codewars, adventofcode, etc [Moved to: https://github.com/x-zvf/programming-challenges]

    I am using AOC to learn clojure: code

  • aoc-2021

    In case you want to take a look, I managed to have a solution with fold https://github.com/rivten/aoc-2021/blob/master/02/rivten/Main.hs

  • advent-of-code-2021

    Javascript link

  • Full writeup on my blog, and code on Gitlab.

  • advent-of-code

  • aoc2021

    Advent of Code 2021 (Elixir + Pygame) (by p88h)

    Elixir

  • Advent-of-Code

  • aoc-2021

    🎄 Python Day 2 🎄

  • homebrew-emacs-plus

    Emacs Plus formulae for the Homebrew package manager

    I haven't had any problems with company/sly on emacs-plus v28 on an m1 chip FWIW: https://github.com/d12frosted/homebrew-emacs-plus

  • advent-of-code-2021

    Common lisp: https://github.com/atgreen/advent-of-code-2021/blob/main/02.lisp

  • aoc2021

    github link

  • advent-of-code

    Advent of Code 2021 (by larsh1997)

    Day 2 part a

  • aoc2021

    Solutions for Advent of Code 2021 in Typescript with a custom React calendar. (by sanraith)

    day02.ts (github) Parse input with regex, map commands to { horizontal, depth } pairs, sum them accordingly

  • Elm https://gitlab.com/sakisan/adventofcode/-/blob/2021/Elm/Day02.elm

  • advent-of-code-2021

    My contributions to the advent of code 2021 event (by sander1095)

    My answer in c# with dotnet 6 and records :D. https://github.com/sander1095/advent-of-code-2021

  • aoc-2021

    Advent of Code 2021 (by mintopia)

    Solution for PHP 8.1

  • aoc

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

    Here's my solution in Clojure. Still feeling like a beginner though, need to refactor solution using reduce.

  • AdventOfCode_2021

    Repo for the 2021 edition of www.adventofcode.com (by LubosKolouch)

  • Python So i use the regrex package to get the instructions in a clear format. Once this done it's pretty straighforward. Gitlab link.

  • adventofcode

    Advent of Code in PHP. (by duemti)

    PHP

  • GitHub

  • adventofcode2021

    Advent of Code 2021 (by r0f1)

  • advent_of_code

    This repository contains solutions to Advent of Code challenges (by joakim-strandberg)

    Ada95, part one (full code at https://github.com/joakim-strandberg/advent_of_code/):

  • aoc2021

    Advent of code https://adventofcode.com/ (by FlakM)

    Here are my solutions in rust task 1 and task 2. I didn't really strive for completion speed but second task was done in like 5 seconds due to code from first task being structured in reusable way. Also learning vim with coc and rust analyzer and GOD DAMN this is cool! (got some dotfiles if you want) <3 Spent most time fighting with router plugin not to change working directory, for some reason it tripped poor ls.

  • advent-of-code

    My solutions for advent of code (by stonecharioteer)

    Here's day 02 - python

  • adventofcode

    Advent of code solutions (by mathsaey)

  • AdventOfCode

  • advent-of-code-2021

  • advent_of_code2021

    🎄

    github link ```

  • AoC2021

    Advent of Code 2021 (by ZackMason)

    Python 3.10 with pattern matching

  • advent-of-code

    My solutions to the Advent of Code (by aaronreidsmith)

    Scala using foldLeft

  • AoC2021

    Advent of code 2021 (by inneon)

    GitHub

  • adventofcode-2021

    Advent of Code 2021 solutions (by pille1842)

    My code is at https://github.com/pille1842/adventofcode-2021, although I won’t be pushing the solution for day 2 until tomorrow.

  • aoc21

    Solutions for advent of code '21 in haskell (let's see how far I can get) (by lazyguyy)

    Trying to solve every day in haskell, but I'm somewhat of an amateur when it comes to that language. Still, if you want to look at my solution (and possibly drop some hints / give feedback which I would appreciate a lot ), you can find it on github.

  • AdventofCode2021

    part 1

  • toit

    Program your microcontrollers in a fast and robust high-level language.

  • GitHub repo

  • AoC_2021

  • aoc2021

    Advent of Code 2021 (by krmaxwell)

    Same as yesterday, my answers using Go are on Github with a TDD-ish approach. I'm not being super strict with TDD here.

  • advent-of-code-2021

    My C++ solution: https://github.com/pawelzydziak/advent-of-code-2021/tree/main/Day_2 :)

  • Probably overkill, because I parsed the instructions into instances of my point class. I tend to default to that for coordinates nowadays (as opposed to just using complex numbers) because it generically extends to arbitrary numbers of dimensions. Just in case.

  • aoc

    Advent of Code (by yannjor)

    Github

  • advent-of-code-2021

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

  • AdventOfCode

  • advent-of-code

    src

  • aoc2021

    Go

  • aoc

    advent of code - https://adventofcode.com/2021/about (by mikeyjk)

  • advent-of-code

    My solutions to Advent of Code problems. (by benjamingeiger)

    Parts 1 and 2

  • aoc2021-day2-part1

    Part 1

  • aoc2021-day2-part2

    Part 2

  • aoc-ada-2021

    Advent of Code 2021 in Ada

    Part 1

  • AdventOfCode2021FSharp

    Solutions for Advent of Code 2021 in F#

    Here's my solutions in F# (and Jupyter Notebook).

  • advent-of-code

    a02.cc

  • AdventOfCode2021

    Advent of Code 2021 - New to Kotlin (by manitobathunder)

    GitHub

  • adventofcode

    Advent of Code (http://adventofcode.com) solutions written in Python 3 (by viliampucik)

    Python 3 - Minimal readable solution for both parts [GitHub] import fileinput aim, h, d = 0, 0, 0 for l in fileinput.input(): cmd, x = l.strip().split(" ") x = int(x) if cmd == "down": aim += x elif cmd == "up": aim -= x else: h += x; d += aim * x # cmd == "forward" print(h * aim) print(h * d)

  • Hosted on GitLab

  • Java-day-2-part2

    solutions in java for de advent of code day 2 part 2

  • AdventOfCode

    My solutions to Advent of Code (by DanaL)

    C# github repo

  • AdventOfCode2021

    Advent Of Code 2021 in Swift (by mcichecki)

  • AdventOfCode2021

    My solutions to each day of Advent of Code 2021. We shall see how far I get! (by daxschoof)

    Solution

  • code-challenges

  • aoc2021

  • Advent-Of-Code

    Advent of code 2021 (by ffamilyfriendly)

    challange one

  • AdventOfCode2021

    My Advent of Code solutions (by spencerwi)

    Still a promising language though: https://github.com/spencerwi/AdventOfCode2021/blob/ballerina/day2/main.bal

  • aoc2021

  • aoc2021

  • advent-of-code-2021

    🎅🌟❄️☃️🎄🎁 (by mstksg)

    Again this year I am posting my reflections for solving all of these in Haskell https://github.com/mstksg/advent-of-code-2021/blob/master/reflections.md :)

  • More linq oriented than my (old style) https://github.com/pgiacome/AdventOfCode2021/blob/10cd7e41b3ae6a65e81c48418550d50f7a2e5666/AdventOfCode2021/Program.cs

  • Advent-of-Code-2021

    Did somebody say Shakespeare Programming Language? (by SansCipher)

  • adventofcode2021

    Advent of Code 2021 Challenge (by Maeevick)

  • advent-of-code-kotlin

    Advent of code 2021 - Kotlin

    Kotlin, solution for part 1 and 2 — not super concise but a few cool concepts if you're learning the language.

  • advent-of-code

    Advent of code solutions (by tallbikeguy)

    Common Lisp unsophisticated newbie solution I'm going to keep my solutions here: https://github.com/tallbikeguy/advent-of-code/tree/main/2021 ` (defpackage :advent21-02 (:use :cl))

  • adventofcode.sh

    Advent of Code 2020 and 2015, done in bash. Because why not?

    My solution this year was almost exactly like the one __abigail__ posted. I based it on last year's code for day 12. There are 50 days worth of bash solutions in that repo if you're interested. Some contain Voodoo, but it's mostly readable - I hope...

  • aoc2021_SQL

    2021 advent of code in Db2 LUW SQL

  • adventOfCode

    Day 2 solution: https://github.com/gauauu/adventOfCode/blob/master/2021/aoc-src/day2.s It uses a bunch of macros from the following, to help manage all the 16- and 32- bit math that's required. (as the 6502 natively can only do 8-bit adds and subtracts, and no mult/divides) https://github.com/gauauu/adventOfCode/blob/master/2021/framework/src/global.inc

  • adventofcode2021

    Part 2 in Julia. Probably could have used multiple dispatch to do both parts in one file, but was lazy.

  • advent-of-code-2021

    The 2021 adventofcode.com solutions I've written for the YouTube videos (https://www.youtube.com/channel/UCsATdyu8fmu7B_-22AfySxg) (by tpatel)

    The code is available on github too: https://github.com/tpatel/advent-of-code-2021/blob/main/day02.js

  • AdventOfCode2021

    Day 2, Kotlin still going strong. Today I had the opportunity to explore functional collections operations (fold and reduce) :D

  • advent-of-code

    All my advent of code projects (by snowe2010)

  • aoc2021

    Advent of code 2021 in Kotlin! (by crnkofe)

  • AdventOfCode

    Solutions to Advent of Code (by loarabia)

    Day 2 on Github

  • AOC2021

    Advent of code solutions 2021 (by calebwilson706)

  • AdventOfCode2021

    Trying my best in Unity :) (C#) https://youtu.be/a5VvmLE618I Will also add my code here: https://github.com/dspieard/AdventOfCode2021

  • adventofcode

    Python 3 day 2 solution damn it took me more to figure how to organise the data than to write propper to solve the problem. And yet I ended up with List and tuples. IO tried the complex numbers way ( i don't know why they tempt me so much :P ) hope to help someone out.

  • advents-of-code

    🎄🎁 Solutions for the yearly advent of code challenges

    Day2 solution in TypeScript: https://github.com/joao-conde/advents-of-code/blob/master/2021/src/day02.ts

  • AdventOfCode2021

    My solutions to the AdventOfCode 2021 in R🎄 (by JohannesFriedrich)

    Day2 solution in R https://github.com/JohannesFriedrich/AdventOfCode2021/blob/master/Day2/Day2.Rmd

  • AoC

    Done in python https://github.com/michaelmoon57/AoC/blob/main/day_two.py

  • adventofcode

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

    F# and TypeScript Solution

  • advent_of_code

    Both parts. Only started learning it a few days ago, so the code is probably not the best.

  • advent-of-code

    Advent of code solutions (by rbusquet)

  • advent_of_code

  • aoc-2021

    Advent of Code 2021 (by tplassman)

    My solution in PHP, JS, and Clojure

  • [GitHub link](https://github.com/Gadiguibou/advent-of-code-2021/tree/main/day_02_scratch)

  • AdventofCode-2021

    GitHub Link

  • advent-of-code-2021

    Rust implementations for https://adventofcode.com/2021 (by pk-nb)

    Rust (both parts). Learning the language, happy for any feedback on how to be more idiomatic.

  • adventofcode

    Advent of Code solutions (by mcpower)

    its like 600 lines, I recommend writing your own so that the functions make sense for you. Here is the "library" from someone that gets on the global leaderboard (mcpower): https://github.com/mcpower/adventofcode/blob/master/2020/01/utils.py

  • advent-of-code

    My solutions to advent of code events (by AlanGCruz)

    Hi everyone, here are my javascript solutions for both puzzles(day 2). https://github.com/AlanGCruz/advent-of-code

  • advent_of_code_2021

    2021 Advent of Code (by trfore)

    Day 2 Solution in R / Rlang. https://github.com/trfore/advent_of_code_2021/blob/main/day2/r/2021_aoc_day2.R

  • adventofcode

    Nearly forgot to post it here: My solution in Janet https://github.com/tionis/adventofcode/blob/main/2021/2/main.janet

  • aoc-2021

    Advent of Code 2021 https://adventofcode.com/2021 [Moved to: https://github.com/bozdoz/advent-of-code-2021] (by bozdoz)

    Go! https://github.com/bozdoz/aoc-2021/blob/main/02/two.go

  • advent-of-code-2021

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

    Python: https://github.com/plan-x64/advent-of-code-2021/blob/main/advent/day2.py

  • lolAOC

    Happiness for advent of code

    See https://github.com/bellaz89/lolAOC/tree/main/d2

  • advent-of-code

    Answers to 2020 Advent of Code (disclaimer this was done quickly rather than efficiently) (by jordangarrison)

    Day 2 in Go: GitHub

  • advent-of-code

    Solutions for Advent of Code 2017 in javascript (ES6) (by Akallabet)

    Javascript solution

  • AdventOfCode_2021

    My Python solution :)

  • advent-of-code-2021

    Solutions for Advent of Code 2021, written in JavaScript using node.js (by johnbeech)

    Node JS https://github.com/johnbeech/advent-of-code-2021/blob/main/solutions/day2/solution.js

  • advent-of-code-2021

    Trying to solve https://adventofcode.com/2021 (by ThePituLegend)

  • advent-2021

    Advent of Code 2021 solutions (by OmarAssadi)

    Java 17 (with Lombok, Spring, and StreamEx) Main Code: Day2.java Movement Commands: Command.java Input Parser: CommandInputParser.java

  • advent-2021

  • Advent_of_Code

    My Advent of Code solutions.

    My solution in Python.

  • advent_of_code_2021

    Me learning Julia by doing AoC 2021 (by fnands)

    Yeah it's [here](https://github.com/fnands/advent_of_code_2021)

  • advent-of-code

    My solutions for adventofcode.com (by mdwhatcott)

    - [Github](https://github.com/mdwhatcott/advent-of-code/blob/main/clj/src/aoc/y2021/d02.clj)

  • scryer-prolog

    A modern Prolog implementation written mostly in Rust.

    Scryer Prolog Github link

  • advent-of-code

    Solutions to Advent Of Code (by DearRude)

    That person seems pretty advanced. He's using all sorts of symbols I've not come across!

  • Advent_of_Code

    Christmas comes early this year (by FlavorlessQuark)

    Here, this will save you time Script

  • advent-of-code-2021

    Julia

  • advent-of-code

    Advent of code solutions (by EmilOhlsson)

    (define (solve-part2 input) (let next ([depth 0] [distance 0] [aim 0] [input input]) (if (null? input) (* distance depth) (let ([instr (caar input)] [amount (string->number (cadar input))]) (cond [(equal? "forward" instr) (next (+ depth (* aim amount)) (+ distance amount) aim (cdr input))] [(equal? "down" instr) (next depth distance (+ aim amount) (cdr input))] [(equal? "up" instr) (next depth distance (- aim amount) (cdr input))]))))) ``` Full code is here

  • AdventofCode

  • aoc-2021-kotlin

    Advent of Code 2021 puzzle solving using Kotlin

  • aoc-typescript

  • AoC

    Advents of Code in NASM x86_64 assembly (by JustinHuPrime)

    Part 1 and part 2 were both very straightforward - I did cheat a bit by recognizing that there's only ever three possible movements, and that the value associated with each movement was always a single decimal digit.

  • adventofcode

    Advent of code solutions (by julian-west)

    Python day 2 solution (GitHub)

  • advent-of-code

    My Advent of Code submissions (by DecemberDream)

    Python day 2

  • Advent-of-Code-2021

    GitHub/PathCalculation.java

  • AdventOfCode2021

    AdventOfCode 2021 solutions (by Meldanor)

  • aoc

    Advent of Code (by c-kk)

  • Advent-of-Code-2021

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

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less 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