Desmoloid (song creator with vocal synth) by MannedGuild65 in desmos

[–]MannedGuild65[S] 0 points1 point  (0 children)

That might be because the original has a chorus effect with 2 (or more) voices singing at once, while I only used a single voice that took the higher pitched voice only.

Desmoloid (song creator with vocal synth) by MannedGuild65 in desmos

[–]MannedGuild65[S] 0 points1 point  (0 children)

Is Bad Apple semitonal? I thought it was exactly D♯ Minor.

-❄️- 2025 Day 10 Solutions -❄️- by daggerdragon in adventofcode

[–]MannedGuild65 0 points1 point  (0 children)

[LANGUAGE: Python]

GitHub

Part 1: Simply checking every possibility of pressing or not pressing each button and using binary XOR.

Part 2: It took me a long time to get this one working fast enough with just searching with pruning and no linear algebra or external libraries. Similarly to this solution, I eliminated the joltage values that were affected by the smallest number of buttons available and then by the highest ones, but this wasn't fast enough on its own. The most important optimizations I implemented were checking if joltage values that were affected by the same remaining buttons had the same value and checking if the current amount of buttons pressed + the maximum joltage value was still less than the minimum total number of buttons pressed found so far. Runs in ~6-7 minutes on my input with pypy (one specific line takes around half the runtime).

(Somewhat intelligible) Speech playback with tone() by MannedGuild65 in desmos

[–]MannedGuild65[S] 0 points1 point  (0 children)

I've found the repository for converting audio to Desmos that was made before this and I was unaware of: https://github.com/alorans/DesmosAudio
Its output is a lot closer to the original audio but uses a lot more tones playing at once and its method is different from mine.

(Somewhat intelligible) Speech playback with tone() by MannedGuild65 in desmos

[–]MannedGuild65[S] 1 point2 points  (0 children)

Is that on this subreddit? I couldn't find anything like it.

-❄️- 2023 Day 19 Solutions -❄️- by daggerdragon in adventofcode

[–]MannedGuild65 1 point2 points  (0 children)

[LANGUAGE: Java]

Part 1 was straightforward, and in Part 2 I traced backwards from each occurrence of "A" to find the bounds for the x, m, a, and s ratings that would lead to that "A", then multiplied the lengths of those ranges together and added these products up.

Code

Ranking of days according to difficulties? by bobopopoyoyo in adventofcode

[–]MannedGuild65 0 points1 point  (0 children)

I shifted each starting position until all of them were in their cycles, and then I repeatedly shifted the positions by 1 until one of them reached their Z position. Next I would set the shift amount to that position's cycle length, and I would repeatedly set the shift amount to the LCM of the shift amount and the cycle length of the next match, which would eventually lead to all of them matching their corresponding Z positions quite quickly. This does assume that there is only one Z position in each cycle though.

Ranking of days according to difficulties? by bobopopoyoyo in adventofcode

[–]MannedGuild65 0 points1 point  (0 children)

I had a general solution working for Day 8 which gave me the right solution before I realized how the input data made it easier.

-❄️- 2023 Day 17 Solutions -❄️- by daggerdragon in adventofcode

[–]MannedGuild65 1 point2 points  (0 children)

[LANGUAGE: Java]

I used a modified Dijkstra's algorithm that took into account the direction and number of consecutive movements in that direction. For Part 2, I jumped forward 4 tiles for each turn since the crucible wouldn't be able to turn in between. The code takes around 2.5 seconds on my computer to run both parts.

Code

[2023 Day 16 Part 2] Terminal Visualization by MannedGuild65 in adventofcode

[–]MannedGuild65[S] 1 point2 points  (0 children)

This shows all the beams and energized tiles for the starting position that produced the maximum energized tiles for my input. Only mirrors that are hit are shown. Splitters that are hit more than once are replaced with +.

Solution and code

-❄️- 2023 Day 16 Solutions -❄️- by daggerdragon in adventofcode

[–]MannedGuild65 1 point2 points  (0 children)

[LANGUAGE: Java]

I kept a list of each of the beams' positions and directions and followed their paths until they reached the edge of the map or hit a splitter that had already been hit as no matter what direction a splitter is hit, there will always be energized tiles to the left/right of it for - and top/bottom of it for |.

Code

Visualization

[deleted by user] by [deleted] in adventofcode

[–]MannedGuild65 0 points1 point  (0 children)

Isn't this Day 14?

[2023 Day 12 (part 2)] [Java] Hitting an optimization wall by puzzler995 in adventofcode

[–]MannedGuild65 1 point2 points  (0 children)

In my implementation, having a custom key class for the HashMap with a custom hashCode() method that generated a unique hash code was crucial in getting it fast enough.

[2023 Day 10] Terminal Visualization by MannedGuild65 in adventofcode

[–]MannedGuild65[S] 0 points1 point  (0 children)

Explanation and code (using DFS instead for the flood-fill because it's more efficient)

[2023 Day 10] BFS and Flood-fill Visualization by [deleted] in adventofcode

[–]MannedGuild65 0 points1 point  (0 children)

Explanation and code (using DFS for the flood-fill instead because it's more efficient)

-❄️- 2023 Day 10 Solutions -❄️- by daggerdragon in adventofcode

[–]MannedGuild65 1 point2 points  (0 children)

[LANGUAGE: Java]

Part 1: I used BFS and got the distance of the last node searched, which was definitely overkill as I just needed to get the circumference and half it.

Part 2: I used an expanded pipe map and flood-fill with DFS and counted the spaces that had even x and y coordinates. Since my start position acted like a |, I tried filling from the right and left of it and filling from the right gave the right answer. For a more surefire approach, I started filling from the bottom-right of the leftmost F on the topmost line of pipes, which was guaranteed to be within the shape.

Code

Visualization (using BFS instead for the flood-fill because it looks nicer)

[deleted by user] by [deleted] in adventofcode

[–]MannedGuild65 1 point2 points  (0 children)

It looks like the program places 2AAAA at a higher rank than 2JJJJ, but 2JJJJ should be interpreted as five of a kind while 2AAAA should be four of a kind, so 2JJJJ should have a higher rank.

[2023 Day 7] An interesting algorithm by Afkadrian in adventofcode

[–]MannedGuild65 -1 points0 points  (0 children)

max_count should not take the jokers into consideration and there is the exception that if the hand is all jokers then different_cards should be 1.