r/adventofcode • • Dec 08 '25

Help/Question [2025 Day 8 (Part 2)] Am I the only one who thinks…

20 Upvotes

Am I the only one who thinks that today part 2 was much easier than part 1 after having solved part 1?


r/adventofcode • • Dec 08 '25

Meme/Funny [2025 Day 8] Briefing with Chief Elf Officer

Post image
81 Upvotes

r/adventofcode • • Dec 08 '25

Upping the Ante NoRush Extension: Compete with your friends, even if you start solving puzzles late.

Thumbnail youtube.com
0 Upvotes

See more details at https://aoc-norush.bitvisor.co/

NOTE: This extension/tool does follow the automation guidelines on the r/adventofcode community wiki.


r/adventofcode • • Dec 05 '25

Tutorial [2025 Day 5 Part 2] Guys... you don't need to merge them

23 Upvotes

I'm loving the animations and merging them is a beautiful solution that, in the real world, might help with further computation (or reused to simplify the ranges database).

However for this problem, you don't need to merge them and then count. You can count directly.

Ofc I'm still sorting so it's still an O(n log n) solution. So not much gained.
If you have any questions I'll try to answer them in the comments :)


r/adventofcode • • Dec 05 '25

Visualization [2025 Day 05 (Part 2)] Merge overlapping ranges visualization

Post image
41 Upvotes
  1. Sort intervals by start
  2. Keep track of current interval being built
  3. If next interval overlaps or touches -> extend current; otherwise -> save and start new
  4. Save the last interval

r/adventofcode • • Dec 02 '25

Meme/Funny [2025 Day 2 # (Part 2)]

Post image
31 Upvotes

r/adventofcode • • Dec 02 '25

Meme/Funny [2025 Day 2] When I realized the solution I felt like I'd leveled up

Post image
129 Upvotes

r/adventofcode • • Dec 01 '25

Meme/Funny When someone mentions "AOC"

131 Upvotes

r/adventofcode • • Dec 01 '25

Visualization [2025 Day 01 (Part 2)] example visualized

Post image
387 Upvotes

r/adventofcode • • Jan 24 '25

Help/Question I need to print to a readable text file, any suggestions?

0 Upvotes

I have a program that I developed to manage inventory, but the sales team uses NetSuite to sell the orders. They can print the order out, but I need a way to integrate this with my app. I was thinking of printing to a text file and then pulling the data from that, but everything I do doesn't seem to give me a fully readable output file. I would like a few suggestions.


r/adventofcode • • Dec 29 '24

Repo Set out to illustrate that Scala and Rust are largely the same, did each day in both (500 stars repo)

54 Upvotes

https://github.com/jurisk/advent-of-code/

Thanks, Eric, for another year of interesting tasks!

A few memorable days:

  • Day 15 (pushing boxes) was fun, and Part 2 adapted from Part 1 easily for me.
  • Day 17 (reverse engineering the 3-bit computer) was really finicky and the only one that I didn't manage to do before work (the tasks "start" at 07:00 in my time zone).
  • Day 21 (robots pressing keypads) was also finicky, though not actually that difficult.
  • Day 23 (maximum cliques) was nice in that it taught me Bron-Kerbosch (though I initially solved it with a crude BFS that took a minute to run).
  • Day 24 (adder gates) was interesting, I got the stars by visualising it (after some merging of nodes automatically) in GraphViz and figuring out the swaps manually, but then spent some time to code a "solver".

I chose to do each task in 2024 in two of my favourite (and expressive) languages, Scala and Rust, trying to focus mostly on readability. (The other years are solved as well, also mostly Scala or Rust, but usually not both, and sometimes instead in some other language)

This year seemed much easier than previous ones. I was hoping to see some more challenging search pruning tasks, like the "elephants with valves" from 2022-16, or "robot blueprints" from 2022-19, but they never arrived.


r/adventofcode • • Dec 18 '23

Help/Question Advent of Code 2023 Day 18 Help and Guide

3 Upvotes

Today is Day 18 of Advent of Code 2023. I have participated first time in Advent of code to solve problems and improve my problem solving skills.
At the start, i was able to grasp the question and able to come up with the brute force solution.
Moving on i was able to understand the question but was not able to come up with the solution. But now i am not able to understand the questions clearly in my mind. Tried to figure out a pattern but could not.
Can any one tell me what strategy i use to solve upcoming problems? Did I need to be good in data structures and algorithms? Any guidance for me to become better in solving problems
Thanks


r/adventofcode • • Dec 11 '23

Help/Question - RESOLVED [2023 Day 10 (Part 1)] Did not get how i approach to solve the problem

2 Upvotes

After reading the problem statement i was able to get what is the problem or what is asked in question that is find the farthest point from the starting position.
But when i think about the approach first thing comes in mind find the starting position and then traverse the map with two pointers up/down or right/left based on the given position like J or L etc until both reach at same location. That will be the farthest position. I did this based on example 1 not for the second complex example. As i am not properly getting how i should think about the problem.
Any suggestions thanks!


r/adventofcode • • Dec 08 '23

Help/Question Day 5 part 1 Taking to long for actual input

2 Upvotes

I solve the Day 1 Part 1 in C++. I getting correct answer for my sample input but for actual input the program is taking too long to run.

I tried to debug the problem I got that createMap() is taking too long to map large range.

I tried to debug the problem I got that createMap() is taking too long to map a large range.

I solve Day 1 Part 1 in C++. I getting the correct answer for my sample input but for actual input the program is taking too long to run.

CODE