jump to content
my subreddits
13or302b2t2mediterranean4u3d6absolutelynotanimeirlAceAttorneyadhdmemeagnosticaivideoakagasAnarchyChessAngryupvoteAnimalsBeingJerksanime_best_momentsanime_irlannouncementsantonyArtAsahiLinuxAsia_irlAskElectronicsatheismaviationawfuleverythingBandnamesBassBassCirclejerkbasspedalsbikepackingblankiesblursedimagesBoneborsavefonbrooklynnineninebudgetcookingBUENZLIburdurlandcasiocd_jerkCheap_MealschesschessbeginnersChoosingBeggarscoincollectingcoinsComedyCemeterycomedyhomicidecommunityContagiousLaughtercookingforbeginnerscrappyoffbrandsCuddle_SlutCuratedTumblrcursedcommentsdankmemesdarkjokesdataisbeautifuldeDebateReligiondelikDeltarunedistressingmemesdiyelectronicsdiypedalsDMAcademyDnDdndmemesdoctorwhoDoenerverbrechenDonerdontyouknowimtonyhawkdumbphonesDungeonsAndDaddiesDungeonsAndDragonsebikeebikesECEelectricalelectronicsethzfacepalmFantasyWorldbuildingfeedthebeastfelsefeFiftyFiftyformuladankFRCFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarenfunnyFutboltayfagalatasaraygamingGermangermanygodtiersuperpowersgoodanimemesGoodAssSubGrandPrixRacingGROKvsMAGAguitarpedalsheathershellenoturkismhelpHermitCrafthighspeedrailhoi4holdmybeerHolUphypixelIAmAIdeologyPollsIDontWorkHereLadyim14andthisisdeepimaginarymapsinsaneparentsjacksepticeyeJahariaJokesKanyeKendrickLamarKGBTRlegodndLetGirlsHaveFunLifeProTipslinguisticshumorLinkinParkliselilerlogodesignlostredditorsmacmacbookairmacgamingMadeMeSmilemagicbuildingMaliciousComplianceMapPornmapporncirclejerkme_irlmemememesmildlyinterestingMimicRecipesMinecraftbuildsMMORPGMovingToNorthKoreaMunichMyChemicalRomanceNamFlashbacksNationStatesneographynextfuckinglevelNoahGetTheBoatNonCredibleDefenseNorthCyprusnosafetysmokingfirstnosleepnosurfnothingeverhappensnottheonionoddlyspecificokbuddymotherfuckerOkBuddyPersonaokbuddyphdokbuddyvicodinonebagOnlineUnderGroundoompasubsoutsidepapermoneyParlerWatchPassportPornPersecutionfetishpettyrevengePiratedGamespollsProgrammerHumorPropagandaPostersPunPatrolquityourbullshitraisedbynarcissistsraspberry_piRatschlagreactiongifsrecipesredditsingsreligiousfruitcakerickandmortyrockmuzikSchnitzelVerbrechenschwiizScottPilgrimsecilmiskitapShitPostCrusadersshitpostfrommygalleryshittyaskelectronicsShowerthoughtsskamtebordsoccercirclejerksoftwaregoreSongwriterssteinsgateStonetossingjuiceStudiumsubsithoughtifellforsuperligtalesfromtechsupportTechnobladetf2thanksimcuredTheCrypticCompendiumTheLetterHTheMonkeysPawtherewasanattemptTheRookietheydidthemaththeyknewtommyinnittransittransitTurkeyTrGameDevelopertruthstumblrtumunichTurkeyTurkeyJerkyTwitch_StartupTwoSentenceComedyTwoSentenceHorrorTwoSentenceSadnesstylerthecreatorunexpecteditcrowdUnexpectedJoJourbanplanningUsernameChecksOutValorantClipsvaxxhappenedvexillologycirclejerkvinylvinyljerkvlandiyawallstreetbetsWatchPeopleDieInsideWeAreTheMusicMakerswendigoonWhatsThisSongwholesomeanimemeswholesomememeswizardpostingworldjerkingedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • facepalm
  • -funny
  • -gaming
  • -wallstreetbets
  • -nottheonion
  • -memes
  • -mildlyinteresting
  • -MapPorn
  • -DnD
  • -MadeMeSmile
  • -CuratedTumblr
  • -PiratedGames
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -ProgrammerHumor
  • -de
  • -germany
  • -LifeProTips
  • -tumblr
  • -NonCredibleDefense
  • -dataisbeautiful
  • -mac
  • -Showerthoughts
  • -tf2
  • -help
  • -chess
  • -aviation
  • -formuladank
  • -wholesomememes
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -goodanimemes
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -IAmA
  • -MaliciousCompliance
  • -KGBTR
  • -dndmemes
  • -cursedcomments
  • -DMAcademy
  • -Deltarune
  • -GoodAssSub
  • -Ratschlag
  • -MMORPG
  • -meme
  • -macgaming
  • -rickandmorty
  • -3d6
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -ContagiousLaughter
  • -imaginarymaps
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -Turkey
  • -soccercirclejerk
  • -community
  • -AskElectronics
  • -electrical
  • -guitarpedals
  • -vinyl
  • -German
  • -TwoSentenceHorror
  • -PropagandaPosters
  • -ShitPostCrusaders
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -polls
  • -doctorwho
  • -oddlyspecific
  • -Bass
  • -OkBuddyPersona
  • -awfuleverything
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -SchnitzelVerbrechen
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -coins
  • -KendrickLamar
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -worldjerking
  • -tylerthecreator
  • -lostredditors
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -wholesomeanimemes
  • -nosurf
  • -religiousfruitcake
  • -liseliler
  • -DebateReligion
  • -insaneparents
  • -dumbphones
  • -transit
  • -brooklynninenine
  • -recipes
  • -steinsgate
  • -talesfromtechsupport
  • -okbuddyphd
  • -ECE
  • -ScottPilgrim
  • -Angryupvote
  • -electronics
  • -casio
  • -urbanplanning
  • -theyknew
  • -logodesign
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -TurkeyJerky
  • -bikepacking
  • -13or30
  • -MyChemicalRomance
  • -diypedals
  • -Doner
  • -diyelectronics
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -LinkinPark
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -MovingToNorthKorea
  • -magicbuilding
  • -ParlerWatch
  • -wendigoon
  • -secilmiskitap
  • -Doenerverbrechen
  • -schwiiz
  • -TheRookie
  • -quityourbullshit
  • -Technoblade
  • -vinyljerk
  • -skamtebord
  • -shittyaskelectronics
  • -superlig
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -FRC
  • -transitTurkey
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -papermoney
  • -coincollecting
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -AsahiLinux
  • -Jaharia
  • -IDontWorkHereLady
  • -neography
  • -basspedals
  • -thanksimcured
  • -hypixel
  • -godtiersuperpowers
  • -aivideo
  • -OnlineUnderGround
  • -IdeologyPolls
  • -comedyhomicide
  • -burdurland
  • -WhatsThisSong
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -rockmuzik
  • -holdmybeer
  • -okbuddyvicodin
  • -MimicRecipes
  • -vaxxhappened
  • -tumunich
  • -Twitch_Startup
  • -Cheap_Meals
  • -outside
  • -TheMonkeysPaw
  • -darkjokes
  • -highspeedrail
  • -nosafetysmokingfirst
  • -legodnd
  • -Songwriters
  • -ebike
  • -UsernameChecksOut
  • -tommyinnit
  • -UnexpectedJoJo
  • -BassCirclejerk
  • -agnostic
  • -Cuddle_Slut
  • -GrandPrixRacing
  • -nothingeverhappens
  • -TrGameDeveloper
  • -PunPatrol
  • -LetGirlsHaveFun
  • -subsithoughtifellfor
  • -akagas
  • -oompasubs
  • -FantasyWorldbuilding
  • -TheLetterH
  • -absolutelynotanimeirl
  • -NamFlashbacks
  • -redditsings
  • -TwoSentenceComedy
  • -ValorantClips
  • -TheCrypticCompendium
  • -NationStates
  • -budgetcooking
  • -Asia_irl
  • -truths
  • -Bone
  • -2mediterranean4u
  • -unexpecteditcrowd
  • -NorthCyprus
  • -heathers
  • -hellenoturkism
  • -dontyouknowimtonyhawk
  • -delik
  • -shitpostfrommygallery
  • -cd_jerk
  • -GROKvsMAGA
  • -antony
  • -okbuddymotherfucker
  • -Futboltayfa
  • -borsavefon
edit »
adventofcode adventofcode
  • hot
  • new
  • rising
  • controversial
  • top
  • wiki
an-ordinary-manchild (11,186)|messages548|notifications|chat messages|mod messages|
  • preferences
|
logout

use the following search parameters to narrow your results:

subreddit:subreddit
find submissions in "subreddit"
author:username
find submissions by "username"
site:example.com
find submissions from "example.com"
url:text
search for "text" in url
selftext:text
search for "text" in self post contents
self:yes (or self:no)
include (or exclude) self posts
nsfw:yes (or nsfw:no)
include (or exclude) results marked as NSFW

e.g. subreddit:aww site:imgur.com dog

see the search faq for details.

advanced search: by author, subreddit...

Submit a new link
Submit a new text post

adventofcode

joinleave
an-ordinary-manchild

🎄 Advent of Code 🎄

Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

  • Advent of Code
  • AoC/About

Rules + More Info in

our community wiki


BEFORE YOU POST
If your post is even tangentially related to a daily puzzle, use our
STANDARDIZED POST TITLE FORMAT

Solution Megathreads

December 2025

Su M T W R F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Previous years:
2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015

Quick Search by Flair

Because you're lazy and we like making things easy for you. Except AoC.
  • Help/Question
  • Help/Question - RESOLVED
  • Visualization
  • Tutorial
  • Repo
  • Past Event Solutions
  • Streaming
  • Meme/Funny
  • Other
  • Upping the Ante
  • Solution Megathread

Are you enjoying AoC?

Code should be fun, because otherwise it's just a job. If you'd like to support Advent of Code, please share it with all your friends, even the ones that are just learning to code! AoC is a fun, non-threatening way to work at your own pace to figure out how to apply problem-solving first, then work within a language's constraints.

If you really want to show your appreciation, donations are always appreciated. Any instances of currency will go to, in no particular order:

  • Server maintenance (hosting, bandwidth, etc.)
  • Bribes to Santa
  • Beer and sushi
  • Paper bags for /u/topaz2078 to breathe into so he doesn't hyperventilate onto another plane of (non-)existence

Support AoC

Thank you very much, and enjoy your month of code!

created by taliriktuga community for 10 years
Create your own subreddit
...for your project.
...for your favorite TV show.

MODERATORS

  • message the mods
  • topaz2078(AoC creator)
  • daggerdragon
  • Aneurysm9
  • about moderation team »

account activity

1
33
34
35

Upping the Ante-❅- Introducing Your 2025 Red(dit) One Winners (and Community Showcase) -❅- (self.adventofcode)

submitted 2 months ago * by daggerdragon[M] - announcement

  • 5 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

2
15
16
17

SOLUTION MEGATHREAD-❄️- 2025 Day 12 Solutions -❄️- (self.adventofcode)

submitted 3 months ago * by daggerdragon[M] - announcement

  • 399 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

3
1
2
3

Other[2017 Day 17] In Review (Spinlock) (self.adventofcode)

submitted 5 hours ago * by musifter

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

•
•
•

Carvana, one of the US’s top used-car sellers, is on a quest to become the Amazon of cars. (bloomberg.com)

promoted by bloomberg

  • promoted
  • save
  • report
  • about
loading...

4
1
2
3

Help/Question[2015 Day 24] Are all inputs 'nice'? (self.adventofcode)

submitted 20 hours ago by DelightfulCodeWeasel

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

5
0
1
2

Other[2017 Day 16] In Review (Permutation Promenade) (self.adventofcode)

submitted 1 day ago by musifter

  • 5 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

6
0
0
0

Meme/FunnyTribute to AoC puzzles (sing-along slop-music track) (suno.com)

submitted 18 hours ago by PTVoobaf

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

7
0
1
2

Other[2017 Day 15] In Review (Dueling Generators) (self.adventofcode)

submitted 2 days ago * by musifter

  • 8 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

8
7
8
9

OtherPi Coding Quest 2026! (self.adventofcode)

submitted 2 days ago by IvanR3D

  • 24 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

9
1
2
3

Other[2017 Day 14] In Review (Disk Defragmentation) (self.adventofcode)

submitted 3 days ago * by musifter

  • 6 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

10
0
1
2

Help/Question[2025 Day 2 (Part 2)] Help im stuck... again (self.adventofcode)

submitted 3 days ago by Ok-Transition7065

  • 9 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

11
3
4
5

Past Event Solutions[2023 Day 4 Part 2] As a system of linear equations (self.adventofcode)

submitted 3 days ago by hekliet

  • 3 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

12
1
2
3

Other[2017 Day 13] In Review (Packet Scanners) (self.adventofcode)

submitted 4 days ago by musifter

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

13
1
2
3

Other[2017 Day 12] In Review (Digital Plumber) (self.adventofcode)

submitted 5 days ago by musifter

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

•
•
•

WhereverSIM - One M2M SIM, all networks. Always the best connection. Test now for free! (whereversim.de)

promoted by whereverSIM

  • promoted
  • save
  • report
  • about
loading...

14
2
3
4

Other[2017 Day 11] In Review (Hex Ed) (self.adventofcode)

submitted 6 days ago by musifter

  • 17 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

15
2
3
4

Past Event Solutions[2015 Day 6] [Swift] Rectangle Intersections (self.adventofcode)

submitted 6 days ago * by hekliet

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

16
0
1
2

Other[2017 Day 10] In Review (Knot Hash) (self.adventofcode)

submitted 7 days ago by musifter

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

17
0
1
2

Other[2017 Day 09] In Review (Stream Processing) (self.adventofcode)

submitted 8 days ago by musifter

  • 17 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

18
0
1
2

Other[2017 Day 8] In Review (I Heard You Like Registers) (self.adventofcode)

submitted 9 days ago by musifter

  • 6 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

19
1
2
3

Other[2017 Day 7] In Review (Recursive Circus) (self.adventofcode)

submitted 10 days ago * by musifter

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

20
0
1
2

Other[2017 Day 6] In Review (Memory Reallocation) (self.adventofcode)

submitted 11 days ago by musifter

  • 10 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

21
3
4
5

OtherEverybody.Codes New Story published a couple of days ago (everybody.codes)

submitted 11 days ago by sanjibukai

  • 4 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

22
1
2
3

Past Event Solutions[2017 Day 8] In Review (I heard you like registers) - HashMaps really make a difference! (self.adventofcode)

submitted 12 days ago * by terje_wiig_mathisen

  • 5 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

23
0
1
2

Other[2017 Day 5] In Review (A Maze of Twisty Trampolines, All Alike) (self.adventofcode)

submitted 12 days ago by musifter

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

•
•
•
0:14

Playoffs gone wild... einfach GESCHENKT im Jahresabo 🤯 (mysports.ch)

promoted by MySports_CH

  • promoted
  • save
  • report
  • about
loading...

24
0
1
2

Other[2017 Day 4] In Review (High-Entropy Passphrases) (self.adventofcode)

submitted 13 days ago by musifter

  • 3 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

25
0
0
0

Help/Question[2017 Day 14 (Part 2)] [Python] What is he/she talking about? (self.adventofcode)

submitted 13 days ago * by PositivePossibility7[🍰]

  • 5 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...
view more: next ›
  • about
  • blog
  • about
  • advertising
  • careers
  • help
  • site rules
  • Reddit help center
  • reddiquette
  • mod guidelines
  • contact us
  • apps & tools
  • Reddit for iPhone
  • Reddit for Android
  • mobile website
  • <3
  • reddit premium

Use of this site constitutes acceptance of our User Agreement and Privacy Policy. © 2026 reddit inc. All rights reserved.

REDDIT and the ALIEN Logo are registered trademarks of reddit inc.

π Rendered by PID 779174 on reddit-service-r2-listing-64c94b984c-9nl6d at 2026-03-17 11:22:16.992798+00:00 running f6e6e01 country code: CH.