-
Scout Monitoring
Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
-
AdventOfCode
My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA
-
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.
-
AdventOfCodeTI83
As many Advent of Code problems as possible, done in Z80 assembly language for the TI83 graphing calculator.
-
adventofcode
Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala (by sim642)
-
aoc2022
Discontinued Advent of Code 2022 solutions [Moved to: https://github.com/deafpolygon/advent-of-code] (by deafpolygon)
-
advent-of-code-2022
Solutions for Advent of Code 2022, written in JavaScript using node.js (by johnbeech)
-
AdventOfCode
Discontinued My adventofcode.com solutions [Moved to: https://github.com/d-hain/advent_of_code] (by d-hain)
-
advent-of-code-2022
The 2022 adventofcode.com JavaScript solutions I've written for the YouTube videos (https://www.youtube.com/@thibpat) (by tpatel)
-
2022-AoC
Wherein I pretend I learned anythign at all about programming int he last year (by blairfrandeen)
-
aoc-2022
My solutions for Advent of Code 2022; First year participating, learning rust in the process (by dawsynth)
-
advent-of-code
My attempts of working on the advent of code questions starting from 2022 (by emilshr)
-
aoc2022
Trying to solve Advent of Code 2022 in 25 different languages (1 day = 1 language) (by GoldsteinE)
-
advent_of_code_2022
Discontinued [Moved to: https://github.com/michael-long88/advent-of-code-2022] (by michael-long88)
-
Advent-Of-Code-2022
My solutions for Advent Of Code 2022. Every day is written in another language, chosen randomly. (by Jomy10)
-
AdventOfCode2022
Discontinued My solutions to Advent of Code 2022 https://adventofcode.com/ (by PetchyAL)
-
aoc_2022
Discontinued Advent of Code Solutions [Moved to: https://github.com/hannahjayne/aoc] (by hannahjayne)
-
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)
-
advent-of-code-go
All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022
-
AdventOfCode-Day2-Rock-Paper-Scissors
C# console app that solves the AdventOfCode Day 2 - Rock Paper Scissors puzzle
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
python3 a bit slow for my taste, but I am proud of my solution I had a few shortcuts 1- there are only 9 cases repeating so no need to calculate each, just do it for each kind then multiply by their frequency 2- no lookup tables used, think ASCII if we shift second hand from 'X' and first hand from 'A' if second is leading, it is a win; if second is lagging, it is a loss; if they are in sync, it is a tie https://github.com/Fadi88/AoC/blob/master/2022/day02/code.py Is the code complex to follow ? Any hints on how to make it look simpler are appreciated also porting to rust later and posting that as well
Nice one. Way cooler than my half-assed hardcoded solution
Thanks! Feel free to watch my Github Repo if you want to be notified ;-)
I'm trying to optimize mine, you might find it interesting
Here's my JavaScript solution: https://github.com/Topener/adventofcode/blob/2022/day2/program.js.
I used lookup tables in the same was as mentioned in day 03, and I wonder if converting the switch to an inline table would be easier to read:
Python3, 22/11. Video. Code.
github
Python 849/1095
Indeed, I'd love to see what others have come up with. My cleaned-up version certainly isn't any more elegant...
Both part 1 and part 2 were solved using lookup tables - get the two characters representing the first and second columns of the table, and convert them into a number between one and three. Finally, using the power of x86 scale-index-displacement-base addressing, I could get the right byte in the lookup table holding my score. A little assembly optimization was used to remove unnecessary casts (e.g. movzx rax, al isn't necessary if you know for certain that the upper seven bytes of rax are zeroed out already). Part 2 didn't even require any code changes, just changes to the lookup table! Adapting the lookup table for part 2 was actually quite easy - with the way I wrote the table, I could pretty easily sort the table so that the losing, drawing, and winning combinations were in the right order.
Like this
Language: Python3 Part 1: https://github.com/wmt1276/advent-of-code-2022/blob/main/2a.py Part 2: https://github.com/wmt1276/advent-of-code-2022/blob/main/2b.py GitHub Copilot is good at writing RPS functions. GitHub Copilot is bad at writing any of the other functions one needs.
Solutions are on github here
Heh, I did basically the same thing in Rust
See it on GitHub: https://github.com/SimonBaars/AdventOfCode-Java
Javascript solution
OCaml
JavaScript
Lisp https://gitlab.com/Elmosfire/aoc2022lisp/-/blob/main/day2.lisp
My second-ever Go program: https://github.com/wjholden/Advent-of-Code-2022/blob/main/02/02.go
Full code here (GitHub).
I'm learning Golang this year! https://github.com/tudorpavel/advent-2022/blob/master/day02/main.go
I don't know why I do these things: https://github.com/quandrum/aoc22/blob/main/lib/advent_of_code/day_02.ex
C https://github.com/Kwaitv/AOC/blob/main/2022/2day/day2.c
Rust
Program synthesis / metaprogramming in Typescript
Z80 Assembly for TI-83
My solution for today
ngn/k (my repo).
I did the puzzle in Java with a jumble of if expressions like other people here. I then took it upon myself to turn both parts into (effectively) one-liners per part using the power of MATH. Have my code
My Scala solution.
Python: code here
Code: Repo, Today's solution
I have a chunky solution for day02 in python. https://github.com/colonwq/aoc-2022/tree/master/day02
Dyalog APL A B C←X Y Z←0 1 2 p←↑⍎¨⊃⎕NGET'p2.txt'1 +/(1+⊢/p)+3×3|1--/p ⍝ part 1 +/(3×⊢/p)+1+3|2++/p ⍝ part 2
JavaScript
Rust: Day 02
A (modular) algebra based solution in Haskell, but I frame no hypothesis :) I just played around with random equations until it worked. All of my solutions for 2022
Julia using modular arithmetic
Uneventful Rust solution for day 2: https://github.com/jasonincanada/aoc-2022/blob/main/day_02/src/main.rs
Very non-clever implementation with a lot of enums... maybe one layer too many of enums :)
Source Code | Video Explanation
C
Swift repo using enums and switch
Part 1 | Part 2
My submission code had the dubious distinction of working on the first try, but it was a tangled nightmare of when statements and bad ideas kludged on top of other bad ideas.
Did this one in JavaScript grabbing the element from the DOM and method chained it to make it usable, full repo is here: https://github.com/AdelFetner/Advent-of-Code
Parsing using DCGs, outcomes encoded as rules: https://github.com/aarroyoc/advent-of-code-2022/blob/main/day2/main.pl
Golang p1 & p2 https://github.com/tmslammi/aoc22/blob/master/2022/day02/main.go
Solutions
part1 part2
Java
My over-engineered Node JS solution for day 2 parts 1 and 2: - https://github.com/johnbeech/advent-of-code-2022/blob/main/solutions/day2/solution.js
Day2
Here's the code
Full writeup on my blog, and code on Gitlab.
my solution: https://github.com/jossbnd/advent_of_code_2022/blob/main/dec02/dec02.go
nothing special but it just works
The cleanest solution in JS, change my mind: My index.js
Python 3.11 caveman brain solution
Minecraft functions Repo : https://github.com/MrPingouinMC/aoc2022/tree/main/sol/day2
My Python solution: https://github.com/tomribbens/advent-of-code-tribbe/blob/master/aoc_tribbe/aoc2022/d02.py
Damn, and I thought I was smart. https://github.com/widforss/adventofcode/blob/master/examples/2022/2/main.py
My second day with Julia. I'm learning a lot from other Juliarians, so hopefully my naive fresh take is always somehow interesting!
Been using jq for a few years for the AoC, so here's day 2 (probably a bit verbose):
I’m a beginner and noob in Python. Both part 1 and 2 solutions here: https://github.com/hrtowii/AOC2022/blob/master/day2.py
Repo at github, tweet here.
Solution: https://github.com/tymscar/Advent-Of-Code/tree/master/2022/typescript/day02
Part 1
Scala. A little more verbose than I would like, but it works ¯\_(ツ)_/¯
GitHub: https://github.com/jcollard/AdventOfCode2022/tree/main/Day2-RPS
Rust: https://github.com/Scharrels/advent_of_code_2022/blob/master/src/day2_rock_paper_scissors.rs
Why yes, we can.https://github.com/herites/aoc_2022/tree/main/day2
I feel pretty good about my ngn/k solution: https://github.com/gitonthescene/AoK/blob/main/2022/day2.k
Go! https://github.com/bozdoz/advent-of-code-2022/tree/main/02
Typescript solution: https://github.com/xhuberdeau/advent-of-code-2022/tree/main/src/day-2
this is really neat, I went off trying to make it scalable for more symbols, but part two never happened... https://github.com/plukethep/Advent_of_code_r/blob/main/2022/day2.R
Python3 solution!
C# https://github.com/Perska/AoC2022/blob/master/AoC2022/Days/Day02.cs
link to github
C# Github Repo Day 2 - Puzzle 2
code
Extremely overengineered and with testing library: GitHub
This is my solution in Nim: Github
Fun with math (C++ enums) https://github.com/shouchen/AdventOfCode/blob/master/aoc2022/Day2/Day2.cpp
My C++ Solution
My solution in Rust
C# - [Part 1] [Part 2]
Python, using modular arithmetic on ordinals. Idea behind the score formulas: if you place "Rock, Paper, Scissors" on a circle, the winning match is one step counterclockwise...or two steps clockwise.
My Pluto notebook is here.
first year participating, my solution written in rust
Rust
I'm pretty happy with my Rust solution for this one.
Swift, using some helpers for `CaseIterable`.
Done in C#, written as a service with this model to simulate each round.
Haskell, runs in 3 ms. I had some fun with Ord and Enum, there really should be some modular Enum.
My solution was very similar to yours: https://github.com/MichaelSquires/AdventOfCode/blob/master/2022/d2.py
Here's my day two solution using Factor
F# https://github.com/ntreu14/Advent-of-Code-2022/blob/master/day02/Program.fs
Trying to learn a little Rust this year: day 2
Try one
I just picked up the language, but here's my somewhat over-complicated solution.
My Rust solution.
Github
Using collections and simple pair mapper: code
My own variant of Shenzen I/O's programming language.
Go Solution Day 2
Common Lisp 3139 / 2967
Python 3 solution with a lot of help from dictionaries: https://github.com/EvanFNG/Advent-of-Code-2022/blob/main/day2.py
Typescript solution
Not proud of this, but happy to have discovered AoC and this awesome community (read: 👶's first post)!
my answer in JS
Node.js solution (repo)
Github
Elixir code
I don't normally share my solutions because they are so much more complex than they need to be, but I'm getting better. Day 2
Rust: https://github.com/michael-long88/advent_of_code_2022/blob/main/src/bin/02.rs
Solution in C++!
Solution in Java
Haskell
Python 3 ``` score = { "A": 1, "B": 2, "C": 3, "X": 1, "Y": 2, "Z": 3 }
Rust with Testsgithub repo Tried with Enums but still a little bit verbose
F# - Single fold, TS - Readable, no if-else, Using Record Type always fun.
So I was code-golfing my solution a lot and trying various stuff to remove when statements in my Kotlin code and have the solution be purely mathematical, my full solution here: Day 2 Solution
Here is my solution for today. It is a little bit verbose, but I want to make the code easy to understand by reading, so I hope I achieved that : https://github.com/Azouu/advent-of-code-2022/blob/main/day_2/main.py
Python 3 https://github.com/Fiddle-N/advent-of-code-2022/blob/master/day_02/process.py
My solution in Python: https://github.com/alexandru-dinu/advent-of-code/blob/main/2022/day-02/solve.py
Created 2 Solutions, but thought my second solution was kind of interesting: https://github.com/t2minht/AdventOfCode22/blob/main/Day2/Day2Alternative.py
Chapel: An implicitly parallel solution
C++
Code
Rust solution in about 30 lines: https://gitlab.com/landreville/advent-of-code-2022/-/blob/master/src/day2.rs
Rust: part 1, part 2 Python: part 1, part 2
Go : https://github.com/Rik034/AoC22/blob/main/day2/main.go
Go / Golang solution
TypeScript (852/3152)
Repo: https://github.com/rewritten/aoc.ex
A Go / Golang solution
Part 1
Learning Scala with advent of code this year (first time writing Scala). Solution for both parts here: https://github.com/joao-conde/advents-of-code/blob/master/2022/src/day02.scala
Here some ruby
Scratch:
C# Solution, using switch statements, nothing fancy :/
part 2
Part 1
Day 2
BQN GitHub
Here is mine
Part 1