Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8082

Teaching and learning resources • Re: Advent of Code 2025

$
0
0
This is how I fared using rather rough-and-ready Python on a Raspbery Pi 5:

Code:

Day   Lines     Run time 1       30       0.015s 2       29       0.012s 3       23       0.025s 4       57       0.163s 5       49       0.017s 6       43       0.023s 7       31       0.016s 8       69       1.909s 9       83       3.628s  <-- not quite a general solution10      206  192m20.243s  <-- ugh11       39       0.026s
Times for both parts, including startup and reading the input.
I found days 9 and 10 pretty tough. There must be some clever trick for speeding up day 10, which I have missed!
Looks great! Was there a 12 day?

Statistics: Posted by ejolson — Fri Dec 12, 2025 8:18 pm



Viewing all articles
Browse latest Browse all 8082

Trending Articles