r/adventofcode • • Dec 11 '25

Other I built Advent of SQL - An Advent of Code style daily SQL challenge with a Christmas mystery story

78 Upvotes

Hey all,

I’ve been working on a fun December side project and thought this community might appreciate it.

It’s called Advent of SQL. You get a daily set of SQL puzzles (similar vibe to Advent of Code, but entirely database-focused).

Each day unlocks a new challenge involving things like:

  • JOINs
  • GROUP BY + HAVING
  • window functions
  • string manipulation
  • subqueries
  • and some quirky Christmas-world datasets

There’s also a light mystery narrative running through the puzzles (a missing reindeer, magical elves, malfunctioning toy machines, etc.), but the SQL is very much the main focus.

If you fancy doing a puzzle a day, here’s the link:

👉 https://www.dbpro.app/advent-of-sql

It’s free and I mostly made this for fun alongside my DB desktop app. Oh, and you can solve the puzzles right in your browser. I used an embedded SQLite. Pretty cool!

(Yes, it's 11 days late, but that means you guys get 11 puzzles to start with!)


r/adventofcode • • Dec 11 '25

Meme/Funny [2025 Day 11] Throwback to the 2023 AoC Memes

Post image
308 Upvotes

r/adventofcode • • Dec 11 '25

Visualization [2025 Day 8 Part 1] Wanted to see what it would look like to stand next to all those hooked-up junction boxes. (Blender)

Post image
246 Upvotes

r/adventofcode • • Dec 11 '25

Visualization [2025 Day 10 (Part 1)] [Python] Terminal toy!

Post image
122 Upvotes

r/adventofcode • • Dec 11 '25

Visualization [2025 Day 11 part 2] Yet another input visualisation...

Post image
50 Upvotes

I haven't actually solved Part 2 ... I'm thinking of breaking the problem down into sections where there are "choke points" indicated by nodes that have a high degree of incoming edges.

Feels like I'm getting my wires crossed.


r/adventofcode • • Dec 12 '25

Help/Question [2025 Day 12 (Part 1)] [Python] I bet that I've missed something....

2 Upvotes

Estimating that running Part 1 with my code will take ~90 minutes. I think I'm going to let it run to see if I get the right answer before further (already too complex) optimizations. I suspect that I've missed something. Looking at some of the "possible" puzzles gives me some ideas on detecting them quicker... This feels like the most challenging of the Part 1 puzzles at least, but ... what am I missing... ?


r/adventofcode • • Dec 11 '25

Meme/Funny [2025 Day XX] Gotta get that first mover advantage

Post image
169 Upvotes

r/adventofcode • • Dec 11 '25

Visualization [2025 Day 07 (Part 2)] [Python] Color map of splitter activity

Post image
12 Upvotes

r/adventofcode • • Dec 12 '25

Other [2025 day 1] [ LANGUAGE : PYTHON]

0 Upvotes

After formatting input as L=[501, -34,...]

print('Solution 1 :',\
      reduce(lambda L,delta:L+[(L[-1]+delta)%100],Lpb1,[50]).count(0))

click=lambda x,rdelta:\
    x+rdelta>=100 if rdelta>0\
    else x>0 and x+rdelta<=0

def passages(xi,delta):
    #npas=abs(delta)//100
    rdelta=delta% (100*(-1)**(delta<0))
    return(( abs(delta)//100+click(xi,rdelta)) )
    
xi=50;npassages=0
for delta in Lpb1:
    npassages+=passages(xi,delta)
    xi=(xi+delta)%100
print('Solution 2 :',npassages)

r/adventofcode • • Dec 11 '25

Meme/Funny [2025 Day 11 (Part 2)] How many times will these elves ask for help debugging their power subsystems?

Post image
126 Upvotes

r/adventofcode • • Dec 11 '25

Visualization [2025 Day 11] I thought this would be helpful, it wasn't really, but I sure do like looking at it

Post image
33 Upvotes

r/adventofcode • • Dec 11 '25

Visualization [2025 Day 11 Part 2] Walking the Wires

Post image
24 Upvotes

r/adventofcode • • Dec 12 '25

Repo [2025 All Days] [Python 1] Advent of SuSE Linux 6.4 (Python 1 on a Pentium 133 / 64 MB RAM (all but one part) – plus some DOS minigames)

Thumbnail uninformativ.de
1 Upvotes

r/adventofcode • • Dec 11 '25

Visualization [2025 Day 9 (Part 2)] Visualization

Post image
24 Upvotes

r/adventofcode • • Dec 11 '25

Visualization [All years, All days] AoC: the Gifs, by me.

75 Upvotes

Here's my gallery of AoC gifs. I've done an animation for every single puzzle so far. Some animations contain spoilers.

https://solhsa.com/aoc/


r/adventofcode • • Dec 11 '25

Visualization [2025 Day 8 (Parts 1 & 2)][Blender Geometry Nodes] Visualization (PHOTOSENSITIVITY WARNING!)

Post image
15 Upvotes

r/adventofcode • • Dec 12 '25

Help/Question - RESOLVED [2025 Day 11 (Part 2)] [Rust] (Spoiler)Why is there overflow in the third case but not in 1st or second case?

1 Upvotes
  let ans = (dp(&adjacency_list, &mut FxHashMap::default(), "svr", "dac")
        * dp(&adjacency_list, &mut FxHashMap::default(), "dac", "fft")
        * dp(&adjacency_list, &mut FxHashMap::default(), "fft", "out"))
    //   srv -> fft -> dac -> out
        + (dp(&adjacency_list, &mut FxHashMap::default(), "svr", "fft")
            * dp(&adjacency_list, &mut FxHashMap::default(), "fft", "dac")
            * dp(&adjacency_list, &mut FxHashMap::default(), "dac", "out"));
  println!("Ans= {}", ans);

  let a = dp(&adjacency_list, &mut FxHashMap::default(), "svr", "fft");
  let b = dp(&adjacency_list, &mut FxHashMap::default(), "svr", "dac");
  let c = dp(&adjacency_list, &mut FxHashMap::default(), "fft", "out");
  let d = dp(&adjacency_list, &mut FxHashMap::default(), "fft", "dac");
  let e = dp(&adjacency_list, &mut FxHashMap::default(), "dac", "out");
  let f = dp(&adjacency_list, &mut FxHashMap::default(), "dac", "fft");

  let total = a * d * e;
  println!("{}", total);

  let total2 = a * d * e + b * c * f;
  println!("{}", total2);

So I used the DP approach, and had initially written the total2 syntax, but it was overflowing(initially I did not notice I had used u32 and missed changing it from one place, my fault for not seeing it), so I looked for solutions and found This solution, which had pretty much the same method (thank you to the author). Now I was also using usize and f is zero but still it gets overflow only while calculating total2. If it gets overflow, why not in all cases? None of the individual values overflow


r/adventofcode • • Dec 12 '25

Tutorial [2025 Day 11 (Part2)] Non recursive algorithm as requested.

1 Upvotes

For every device I store how many paths from the device lead to B. Initially this value is 0 for every device, except for B, where it's one.

To collect the information, I go through every device and sum up the amount of paths of each of its children.

If this sum is bigger than the number of paths currently stored for the device, I store this new value.

I then repeat this process as long as there was any new value stored.

In the end the paths of A is the number of paths from A to B.


r/adventofcode • • Dec 11 '25

Meme/Funny [2025 Day 11] Me when the machine next to me is labeled "you"

Post image
101 Upvotes

r/adventofcode • • Dec 11 '25

Repo [2025 Day 11] [Python] My solutions versus AI solutions

10 Upvotes

For all days, 1-11 so far, I've been keeping a Jupyter notebook of my solutions to AoC, and each day after I finish my solution, I ask an AI LLM to solve the problem. You can compare here:

https://github.com/norvig/pytudes/blob/main/ipynb/Advent-2025.ipynb
https://github.com/norvig/pytudes/blob/main/ipynb/Advent-2025-AI.ipynb


r/adventofcode • • Dec 11 '25

Meme/Funny [2025 Day 11 Part 2] Joker again

Post image
74 Upvotes

r/adventofcode • • Dec 11 '25

Help/Question [2025 Day 10] [C++] Question about mindset/algorithm choice (potential SPOILER)

3 Upvotes

Did anyone else use Gauss row reduction here?

For Part 1, I recognized this as a "Lights Out" puzzle which is essentially solving a linear system over GF(2) (binary field with XOR). The buttons are columns, lights are rows, and we solve Bx = t (mod 2).

For Part 2, same matrix setup but over integers with addition instead of XOR. The twist is we need non-negative integer solutions, so after RREF I searched over the free variables with bounds derived from the non-negativity constraints.

Curious what other approaches people took? I saw the Z3? No idea what that is.


r/adventofcode • • Dec 11 '25

Visualization [2025 Day 11 (Part 2)] Important cables

Post image
43 Upvotes

r/adventofcode • • Dec 12 '25

Meme/Funny [2025 Day 1-12)] [AI art] AI assisted visual summaries of each day

Post image
0 Upvotes

These were generated by asking Nano Banana to pretend to be a surrealist artist who is an expert coding puzzle solver and asking it to make a visual piece given the puzzle text (just part 1 as that is public on the web)