-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
Python 3 21/12
-
Python 3.11 156/6
-
rust What an ugly chain of if else if else if else... But it did the job. And I'm even < 1000th \o/ Also: mandatory paper cube.
-
Python+Paper [1740/765]
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
C# [1203/884]
-
Code: https://github.com/mmdoogie/adventofcode2022/tree/master/22
-
code
-
Rust day 1, part 1 in pretty explicit rust
-
perl5 [code] [cube action shot] [stream]
-
Factor, cube
-
Links GitHub Source Arts and Crafts A Arts and Crafts B
-
Part 1 is similar in setting to day 9 and day 12, walking along a board with some rules. Snatched the constants for directions from there:
-
JavaScript, both parts (just for my map shape .o)
-
Rust
-
-
Part 1 was not a problem, I stored all the map positions in a dictionary and gave them a value of True or False based on if you can move there. I also stored the starting and ending columns and rows for each row and column respectively, so I can just know which position to jump to when I need to wrap around. Part 2 was frustrating. I spent way too much time than necessary because I kept missing some mappings for the whole cube. Right now I have 13 total mappings which worked for my input. I think my solution should work for any arbitrary cube sides, I tried not to assume a lot. Fun problem overall. Made me think. A lot :p
-
Here's my ugly solution that only works on my input (I just enumerated all possible warps and handled them manually). And I made a cube!
-
Even though I had the visual aid I needed to go over the entire thing like 4 times and double check all the wraps that actually occur to make sure it's actually correct. Not difficult, just really tiring and tedious. Anyway, because it was asked for, here are the sketches I made while figuring it out.
-
-
The worst python code I ever wrote
-
Javascript / NodeJS Here's the diff
-
-
-
I had thought that it would only work with my particular cube layout. But scanning the posts, it seems a lot of others (everyone?!) had the same layout. Obligatory cube.
-
-
-
-
-
Python Wrote a lot of tests to get the hardcoded cube wrapping right. Had in the end a bug that i did a direction change if the wall was on the other side on the cube.
-
Rust solution
-
My solution in Python.
-
I only did part 1 tonight, somebody's literarlly doing Redditor wife at the office door.
-
Clojure.
-
GitHub (trust me, you dont wanna see my cube, my fingers were made for typing not for crafting lol)
-
-
Rust
-
Part 2
-
C#
-
Golang 1451/1498 Code Cube
-
Go
-
-
-
Rust
-
I refactored it to learn and understand it. It's quite a bit shorter.
-
-
Java I'm not proud of this at all, consider it a example of how not to do it, but as much time as I put into debugging it, I'm damn well gonna post it :) https://github.com/markearnest/Advent2022/blob/main/src/org/mystikos/aoc2022/day22/Advent22.java
-
Rust. I did hardcode how edges fold in part 2. I made a visualisation tool, which helped me check the folds were at the right spot, ran the code and it worked first try! Compared to the other days, I didn’t focused on speed, but it still runs in less than 1ms. Edit: GitHub https://github.com/baptistemanson/advent-2022/blob/master/src/day22.rs
-
-
Final stand
-
TypeScript - Part 1 used a approach with group of horizontal and vertical lines, Part 2 was intense.
-
Kotlin I need to clean this up but it is a generalized solution that can build a cube given any (valid) input and then run instructions. Was a fun challenge to figure out how to "fold" the flat sides around a cube without actually looking up any algorithms for how to do so...
-
Advent_of_Code
A repo revolving around attempting to solve the Advent of Code puzzles with single-statement t-sql (by adimcohen)
https://github.com/adimcohen/Advant_of_Code_2022_Single_Statement_SQL/blob/main/Day_22/Day_22_Part1.sql https://github.com/adimcohen/Advant_of_Code_2022_Single_Statement_SQL/blob/main/Day_22/Day_22_Part2.sql
-
- C -
-
advent-of-code-go
All 10 years of adventofcode.com solutions in Go/Golang (and a little Python); 2015-2024
-
-
-
Visual aid: https://github.com/nordfjord/advent-of-code/blob/master/2022/22/Cube.jpg
-
Java
-
Generic solution that doesn't depend on cube map layout. Parts 1 and 2 here: https://github.com/jarekwg/advent-of-code/blob/main/2022/AOC22.py
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives