My solution for day 22... Part 2 in 0,5 sec.
#kotlin #aoc22 #adventofcode2022
Good bye #rust ๐ - at least for day 13 of #adventofcode - going for #typescript today
๐eval did the input parsing
๐no idea how I would implement the number|number[] type in rust - easy in typescript
๐คทโโ๏ธ the problem called for recursion if you ask me - could not convince the rust compiler to let me do itโฆ #aoc22
#rust #adventofcode #typescript #aoc22
Fun little embedded software challenge in today's Advent of Code, with clock cycles and pixel beams. Got it down to 32 lines of C code without comments/blank lines! My solution here: https://github.com/ednl/aoc2022/blob/main/10.c or in attached image.
#adventofcode #aoc22 #embedded #software #programming
every #AdventOfCode I get caught up in meta stuff between puzzles, previously I've added some functionality to view stats based on lines of code and character counts of my solutions, but how hard would it be to measure cognitive complexity in javascript?
#AoC2022 #AoC22 #javascript
#adventofcode #aoc2022 #aoc22 #javascript
Exercise 8 of the #adventofcode2022 #aoc22 #aoc #adventofcode was funny and challenging
https://github.com/jeffreygroneberg/AoC22/blob/main/src/main/java/day08/TreetopTreeHouse.java
Check out the tests to see the methods in action.
#dev #developing #developer #coding #code #secops #devops #devs
#AdventOfCode2022 #aoc22 #aoc #adventofcode #java #solution #dev #developing #developer #coding #code #secops #devops #devs
Proud of this short and fast solution to #AdventOfCode #AoC22 day 6 in C without any libraries (well, stdio to read the input and print the result). It uses a sliding window of frequency bins and keeps track of the duplicate count to avoid having to check all the bins every time. The compiled program runs in ~1 ms on a #RaspberryPi 4. Code at https://github.com/ednl/aoc2022/blob/main/06alt.c #coding #programming #CLang
#adventofcode #aoc22 #raspberrypi #coding #programming #clang
#day6 of the #adventofcode2022 #aoc22 #adventofcode was pretty easy. As already mentioned: Use a set.
That's it. Here is my solution:
https://github.com/jeffreygroneberg/AoC22/blob/main/src/main/java/day06/TuninTrouble.java
#coding #developing #dev #developer #code #devops #secops #software #devs
#day6 #AdventOfCode2022 #aoc22 #adventofcode #coding #developing #dev #developer #code #devops #secops #software #devs
Just a hint for the current #AdventOfCode2022 #adventofcode #aoc22 exercise:
A set only stores unique items. When you put 5 items in and the size of the set is 5, then you can be sure that all items were different.
#coding #code #developer #dev #devs #developing #dev #software #exercise #study
#AdventOfCode2022 #adventofcode #aoc22 #coding #code #developer #dev #devs #developing #software #exercise #study
All caught up with #AoC22! Whew! ๐ Sadly, I don't stay up late enough to catch that leaderboard, but still having a lot of fun just tinkering on these puzzles.
I did the first part of Advent of Code Day 3 in SQL and a little bit of PL/pgSQL. Anyway I was kind of proud of the query that I came up with:
https://gist.github.com/twopoint718/df830292fb63d95dbdc30029a7e3de55
I just refactored the whole code that I wrote this morning for #adventofcode2022 #aoc22 #aoc #adventofcode
I solved most of the parsing with two regexes you can find in the utils: https://github.com/jeffreygroneberg/AoC22/blob/main/src/main/java/day05/SupplyStacksCrane.java
#coding #dev #developer #developing #devops #coding #code #software
#AdventOfCode2022 #aoc22 #aoc #adventofcode #coding #dev #developer #developing #devops #code #software
Pro hint: Do NOT copy/paste the input values of #AdventOfCode2022 #aoc22 over to your IDE and just save it.
Wasted a hell of time with my algorithm, because my IDE removed the tailing white spaces of each line (which is normally useful!).
DOWNLOAD the file and COPY the file!
#coding #software #engineering #dev #developing #developer #code
#AdventOfCode2022 #aoc22 #coding #software #engineering #dev #developing #developer #code
My inner monk forced me to do proper OOD in the current exercise of #adventofcode2022 #aoc22 https://adventofcode.com/2022/day/5
The challenge with exercise 5 was just the parsing of the input file.
Here is my solution: https://github.com/jeffreygroneberg/AoC22/tree/main/src/main/java/day05
#java #coding #developer #developing #dev #devops #secops #code
#AdventOfCode2022 #aoc22 #java #coding #developer #developing #dev #devops #secops #code
Decided to get in on #adventofcode ... so now it's 1am and I'm almost caught up... ๐คฆ๐ปโโ๏ธ This is way, way too much fun. #swift #AoC22
Well, I guess that was a Sunday gimme for #AdventOfCode #AoC22. Source code in C: https://github.com/ednl/aoc2022/blob/main/04.c
Heute morgen bereits das Puzzle bei #AdventOfCode gelรถst. Bei #aoc22 gibt es jeden Tag eine Programmieraufgabe, die man in Sprache seiner Wahl lรถsen kann.
https://adventofcode.com/2022/day/4
Solved day 4 of #adventofcode2022 #adventofcode https://adventofcode.com/2022/day/4
I was too lazy. Used #apachecommons. Not sure if #java >8 already has range checks included.
If you have problems solving this exercise, check out the image
My #github repo: https://github.com/jeffreygroneberg/AoC22/blob/main/src/main/java/day04/CampCleanup.java
#AdventOfCode2022 #adventofcode #apachecommons #java #github #aoc22 #aoc
Fun indexing problem in today's #AdventOfCode #AoC22. I'm still doing it in low level C. For part 1, I went with char pointers and that worked, but I needed to streamline it for part 2 so I switched to bit masks. Code at https://github.com/ednl/aoc2022/blob/main/03.c or: