#adventofcode2022

2023-12-03

#AdventOfCode2022

2022 Day 20: Grove Positioning System
2022 Day 21: Monkey Math
2022 Day 22: Monkey Map

I did get stuck on day 19 of last year's AoC and never finished the remaining days.

While I am waiting for day 4 of this year, I had a go at days 20 - 22 of last year.

20 and 21 were not that hard.
But part 2 of day 22 was a bit tricky. Took me some time to figure out all the tile jumps and direction changes when crossing the cube edges.

The code is not very pretty. And the edge traversal stuff only works for a flattened cube pattern which is the same as my input 🤮​.

Code is here:
github.com/nharrer/AdventOfCod

#AdventOfCode #AoC #typescript

Hand drawing of the fattened cube and how to move across the cube edges.
2023-12-01

@ibboard I'm thinking of going with Python, as I did for the half a dozen exercises from #AdventOfCode2022
It's sort of my comfort language, it seems :blobfoxfloofcofe:

Christy Heatonchristyheaton@mas.to
2023-11-28

#30DayMapChallenge Day 28: Is this a chart or a map? Hypothetical trees in a grid, colored by height. Data from the #AdventOfCode2022 Day 8 challenge. Excited for #adventofcode2023 which starts December 1! Made with Python and GeoPandas.

A square chart with continuous green dots, some darker than others, representing heights.
Matthew :python: :scientist:mattasdata@qoto.org
2023-04-10

I wrote this blog post about my #AdventOfCode2022 foray into #FunctionalProgramming using the #Elm 🌳 language and then completely forgot to share it! It was an interesting experience, with the main conclusion that I won't continue using Elm but that I want to keep investigating functional programming patterns and design.

Thoughts welcome 😁

bielsnohr.github.io/2023/02/18

2023-02-16
While I had high hopes for finishing #AdventOfCode2022 I ended up bailing at Day 10. It was just starting to take too long. In the beginning I thought it'd be fun to maybe do it as a #RetroComputer challenge too but wanted to give myself best chance of success. Well @instantiator had the exact same idea using the BBC micro. He details the three weeks it took him to get the Day 11 challenge done. Very interesting. #BASIC instantiator.dev/post/8-bit-su…
Jari Komppa 🇫🇮sol_hsa@mastodon.online
2023-02-09

Thought about solving old Advent of Code puzzles, but don't have the motivation? Me too! Here's an idea: let's do one puzzle a week.

Deets:

cohost.org/sol-hsa/post/994951
#AdventOfCode #AdventOfCode2022 #AoC #programming #puzzle

Daniel has movedtastapod
2023-02-06

Solving day 15 in with An Algorithm I Found on the Internet™ runs in 1700ms. Simplified based on the specific case (biggish change) -> 900ms. Split work into goroutines (easy) -> 300ms. Moved array allocation out of loop (easiest) -> 170ms. That'll do!

DonKarlssonSanDonKarlssonSan@mas.to
2023-01-30

I decided to visualize the rope simulation from Advent of Code, day 9 on CodePen: codepen.io/DonKarlssonSan/full

It's movement is a bit weird in a fun way and the elasticity is very cool. Try it! (mouse or touch)

#adventofcode #adventofcode2022 #creativecoding

2023-01-20

During #adventofcode2022, I became aware of Stable Diffusion [lnkd.in/eMZ-JzDD], despite not being at all interested in #generativeai #ai. After tinkering, the following are 2 images it generated in response to a concept I gave it from a particular song.
If you can tell me which song is behind the seed I gave Stable Diffusion, you win ... err... something.

machine generated industry-in-landscape imagemachine generated industry-in-landscape image, maybe beside an open mine
2023-01-10

My solution for day 21... Did part 2 by solving one of the Root-monkeys values and then solving the reversed of the leftover-operations with it. Runs in <50ms.

#AdventOfCode2022 #AoC22 #Kotlin

github.com/sukes13/adventOfCod

Daniel has movedtastapod
2023-01-08

@RonJeffries Did you take a look at in ? I’m on day 13 and I am loving a) how natural I am finding it to “think in Kotlin” for the puzzles, and b) how I am discovering language and library features as I go along by trying to solve the puzzles and then simplify them into idiomatic Kotlin. Would love to compare notes.

2023-01-05

My solution for day 19...

Solved by checking all possible states the mining-process can be in during a given number of minutes and find the maximum number of geodes in all 'endstates' + optimizations to reduce number of states. #AdventOfCode2022 #AoC22 #Kotlin

github.com/sukes13/adventOfCod

2023-01-03

After having spent #AdventOfCode2022 solving problems in C, I definitely feel like I have a much better understanding of the language. It was definitely interesting coding while trying to avoid unsafe functions so as not to pick up bad habits. I still can't believe I implemented a hash table for the first time without too much trouble. Still need to finish the last 9 remaining, but definitely have noticed an improvement since day 1!

2023-01-02

My To-Do list has grown so much in December, but I haven't actually managed to do anything.

Rough To-Do list for January and February (in no particular order):
1. Spiderfire Rewrite Merge + Lots of Documentation
2. Upgrade to Iced 0.5 for die-yield-calculator
3. Finish Day 21 to 25 of #AdventOfCode2022
4. Try SvelteKit out for silicon.redfire.dev/ (Currently using Gatsby)
5. Improve the UI and UX of a (private) GUI software
6. Learn some HDL, either Verilog or (higher-level) Chisel

2022-12-31

My solution for day 18...
Solved by refactoring Dijkstra-algorithm from day 12 to count where all empty spots in a path in an enclosing cube, starting outside the droplet, have sides touching the droplet. Part 2 in 1,5 sec. #AdventOfCode2022 #Kotlin

github.com/sukes13/adventOfCod

eve :( 🏳️‍⚧️strbytes@tech.lgbt
2022-12-30

Lol #AdventOfCode2022 day 7 has been kicking my butt. Figured out how to do tree recursion in a #Scheme though (apparently you still need to use a loop in your recursive function)

2022-12-29

My solution for day 17...
Solved by using a tower of lists of booleans. Solved part 2 by looking for a pattern and using that to calculate the total height after 1 trillions rocks. Part 2 in < 100ms
#AdventOfCode2022 #Kotlin

github.com/sukes13/adventOfCod

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst