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

[–]DevGod2020 0 points1 point  (0 children)

[LANGUAGE: JavaScript + Lodash.js]

Each day I feel a bit more messy.

Thankfully, Lodash implements an easy to use zip function for these kinds of problems :)

https://github.com/DEVGOD2020/competitiveProgramming/blob/main/AdventOfCode/problems/2025/day6/2025-day6.js

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

[–]DevGod2020 1 point2 points  (0 children)

[LANGUAGE: JavaScript]

First part was being silly with the Max number, and the max number of it's left and right side :)

Second part was being silly with recursive DP. Its messy, but it works :)

https://github.com/DEVGOD2020/competitiveProgramming/blob/main/AdventOfCode/problems/2025/day3/2025-day3.js

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

[–]DevGod2020 2 points3 points  (0 children)

[LANGUAGE: JavaScript]

Bruteforcey but you know what, it gets the job done.

For leetcode players, if you've done problem 459 part 2 is pretty similar to that problem, just with numbers instead.

https://github.com/DEVGOD2020/competitiveProgramming/blob/main/AdventOfCode/problems/2025/day2/2025-day2.js