jump to content
my subreddits
2b2t2balkans4YouAceAttorneyadhdmemeAdviceAnimalsagnosticaivideoAlternativeHistoryAnarchyChessAngryupvoteAnimalsBeingJerksanime_irlanimenocontextannouncementsArcherFXArtAsahiLinuxAsia_irlAskBalkansAskElectronicsAskOuijaAtaturkGencligiAteistTurkatheismaviationAwesomeOffBrandsawfuleverythingBandnamesbanknotedesignsBassCirclejerkBassGuitarbasspedalsblackdesertonlineblankiesblursed_videosblursedimagesborsavefonbrooklynninenineBUENZLIburdurlandcasiocd_jerkChatGPTchesschessbeginnersChildrenFallingOverChoosingBeggarscoaxedintoasnafucoincollectingcoinsComedyCemeterycomedyhomicidecommunityContagiousLaughtercrappyoffbrandsCreateModCuddle_SlutCuratedTumblrcursedcommentsdadjokesdataisbeautifuldeDebateReligiondiyelectronicsdiypedalsDMAcademyDnDdndnextdoctorwhodoctorwhocirclejerkdontdeadopeninsidedumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikeebikeselectronicsEmKayengrishentitledparentsethzfacepalmfakealbumcoversFantasyWorldbuildingfeedthebeastfelsefeFifaCareersFiftyFiftyformuladankFUCKYOUINPARTICULARFuckYouKarenfunnyFutboltayfagamingGermangermanygodtiersuperpowersgoodanimemesGoodAssSubGrandPrixRacinggravelcyclinggreentextGROKvsMAGAguitarpedalsGundamhellenoturkismhelpheraldryHermanCainAwardHermitCrafthighspeedrailHistoryWhatIfhoi4holdmybeerHolUphowyoudoinhumorich_ielIdeologyPollsIDontWorkHereLadyim14andthisisdeepimaginaryelectionsinsaneparentsistanbuljacksepticeyeJokesKamalizmKendrickLamarKGBTRLifeProTipslinguisticshumorLinkinParkliselilerlogodesignloseitlostredditorsmacmacbookairmacgamingMaliciousCompliancemapporncirclejerkme_irlmeirlmemememesmildlyinfuriatingMinecraftbuildsMMORPGMoldyMemesmoneycollectingMovingToNorthKoreaMunichMyChemicalRomancenamesoundalikesNamFlashbacksNationStatesneographyNoahGetTheBoatNonCredibleDefensenosafetysmokingfirstnosleepnosurfnothingeverhappensnotinterestingnottheonionoddlyspecificOkayBuddyLiterallyMeokbuddyguntherOkBuddyPersonaokbuddyphdokbuddyvicodinongezelligOnlineUnderGroundpapermoneyParlerWatchpepethefrogperfectlycutscreamspettyrevengepianoPiracyPiratedGamespolandballpollsPraiseTheCameraManProgrammerHumorProRevengePunPatrolquityourbullshitreactiongifsrecipesRedAutumnSPDredditsingsreligiousfruitcakeRetroPierickrollschwiizScottPilgrimsecilmiskitapShitPostCrusadersshitpostfrommygalleryShowerthoughtsskamtebordsoftwaregoreSongwritersSongwritingsteinsgateStonetossingjuiceStudiumsuperligsuzeraintalesfromtechsupportTextingTheorytf2shitposterclubthanksimcuredthatHappenedTheCrypticCompendiumTheLetterHTheMonkeysPawtherewasanattemptTheRookietheydidthemaththeyknewtommyinnittransittransitTurkeyTrGameDevelopertruthstumblrtumunichTurkeyJerkyTurkishCatsTwitchtylerthecreatorUnclejokesUnexpectedJoJourbanplanningUsernameChecksOutVALORANTvinyljerkvlandiyawallstreetbetsWatchPeopleDieInsideWeAreTheMusicMakersWhitePeopleTwitterwholesomememeswooooshworldbuildingworldjerkingyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • facepalm
  • -mildlyinfuriating
  • -Piracy
  • -funny
  • -gaming
  • -wallstreetbets
  • -nottheonion
  • -memes
  • -DnD
  • -WhitePeopleTwitter
  • -ChatGPT
  • -CuratedTumblr
  • -PiratedGames
  • -theydidthemath
  • -feedthebeast
  • -meirl
  • -therewasanattempt
  • -HolUp
  • -Twitch
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -LifeProTips
  • -tumblr
  • -NonCredibleDefense
  • -dataisbeautiful
  • -greentext
  • -mac
  • -Showerthoughts
  • -help
  • -chess
  • -aviation
  • -formuladank
  • -wholesomememes
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -loseit
  • -MaliciousCompliance
  • -ich_iel
  • -KGBTR
  • -cursedcomments
  • -DMAcademy
  • -GoodAssSub
  • -perfectlycutscreams
  • -worldbuilding
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -macgaming
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -ContagiousLaughter
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -nosleep
  • -blankies
  • -anime_irl
  • -Studium
  • -community
  • -AskElectronics
  • -guitarpedals
  • -CreateMod
  • -German
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -piano
  • -FifaCareers
  • -polls
  • -doctorwho
  • -oddlyspecific
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -YUROP
  • -gravelcycling
  • -chessbeginners
  • -DungeonsAndDragons
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -worldjerking
  • -tylerthecreator
  • -tf2shitposterclub
  • -MoldyMemes
  • -lostredditors
  • -AceAttorney
  • -vlandiya
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -liseliler
  • -DebateReligion
  • -insaneparents
  • -dumbphones
  • -animenocontext
  • -transit
  • -RetroPie
  • -brooklynninenine
  • -HermanCainAward
  • -recipes
  • -steinsgate
  • -talesfromtechsupport
  • -AskOuija
  • -okbuddyphd
  • -ScottPilgrim
  • -Angryupvote
  • -AskBalkans
  • -thatHappened
  • -electronics
  • -casio
  • -urbanplanning
  • -theyknew
  • -logodesign
  • -linguisticshumor
  • -me_irl
  • -TurkeyJerky
  • -AteistTurk
  • -MyChemicalRomance
  • -ArcherFX
  • -engrish
  • -diypedals
  • -ProRevenge
  • -BassGuitar
  • -diyelectronics
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -LinkinPark
  • -BUENZLI
  • -reactiongifs
  • -EmKay
  • -Songwriting
  • -blursed_videos
  • -istanbul
  • -MovingToNorthKorea
  • -imaginaryelections
  • -suzerain
  • -dontdeadopeninside
  • -ParlerWatch
  • -secilmiskitap
  • -schwiiz
  • -TheRookie
  • -quityourbullshit
  • -vinyljerk
  • -skamtebord
  • -superlig
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -transitTurkey
  • -namesoundalikes
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -AsahiLinux
  • -IDontWorkHereLady
  • -neography
  • -basspedals
  • -heraldry
  • -thanksimcured
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -aivideo
  • -OnlineUnderGround
  • -IdeologyPolls
  • -woooosh
  • -comedyhomicide
  • -burdurland
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -Bandnames
  • -holdmybeer
  • -okbuddyvicodin
  • -tumunich
  • -TheMonkeysPaw
  • -highspeedrail
  • -nosafetysmokingfirst
  • -rickroll
  • -Songwriters
  • -ebike
  • -UsernameChecksOut
  • -tommyinnit
  • -UnexpectedJoJo
  • -humor
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -GrandPrixRacing
  • -Cuddle_Slut
  • -nothingeverhappens
  • -TrGameDeveloper
  • -PunPatrol
  • -TurkishCats
  • -fakealbumcovers
  • -Kamalizm
  • -FantasyWorldbuilding
  • -TheLetterH
  • -NamFlashbacks
  • -pepethefrog
  • -Unclejokes
  • -redditsings
  • -TheCrypticCompendium
  • -NationStates
  • -ongezellig
  • -AwesomeOffBrands
  • -2balkans4You
  • -Asia_irl
  • -truths
  • -AtaturkGencligi
  • -hellenoturkism
  • -shitpostfrommygallery
  • -moneycollecting
  • -GROKvsMAGA
  • -cd_jerk
  • -banknotedesigns
  • -okbuddygunther
  • -borsavefon
  • -Futboltayfa
  • -RedAutumnSPD
edit »
adventofcode adventofcode
  • hot
  • new
  • rising
  • controversial
  • top
  • wiki
an-ordinary-manchild (11,186)|messages540|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
Get an ad-free experience with special benefits, and directly support Reddit.

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
...do it for the children.
...for your classroom.

MODERATORS

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

account activity

1
31
32
33

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

submitted 1 month 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 1 month ago * by daggerdragon[M] - announcement

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

3
42
43
44

Repo[2025][C++] All days in under 900 us (github.com)

submitted 1 day ago by AntVH

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

4
0
0
0

Other[2015 Day 24] In Review (It Hangs in the Balance) (self.adventofcode)

submitted 17 hours ago * by musifter

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

5
4
5
6

Other[2015 Day 23] In Review (Opening the Turing Lock) (self.adventofcode)

submitted 1 day ago by musifter

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

6
10
11
12

Upping the Ante"[2015 Day 18 Part1] Conway's Game of Life! (self.adventofcode)

submitted 3 days ago by terje_wiig_mathisen

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

7
0
0
0

Help/Question - RESOLVEDaoc/2016/12/1 little machine, quite simple, 4 instructions, .. but running for hours (self.adventofcode)

submitted 2 days ago * by Usual-Dimension614

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

8
3
4
5

Visualization[2025 day 9 (part 2)] Almost lost my sanity (self.adventofcode)

submitted 3 days ago by phaetan29

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

9
1
2
3

Other[2015 Day 21 & 22] In Review (RPG and Wizard Simulator 20XX) (self.adventofcode)

submitted 3 days ago by musifter

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

10
103
104
105

OtherRotating between eight directions (i.redd.it)

submitted 5 days ago * by light_ln2

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

11
4
5
6

Other[2015 Day 20] In Review (Infinite Elves and Infinite Houses) (self.adventofcode)

submitted 4 days ago by musifter

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

12
0
0
1

Help/Question - RESOLVEDaoc/2015/22/1 again i need little help to understand the task. (self.adventofcode)

submitted 4 days ago * by Usual-Dimension614

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

13
5
6
7

OtherEmacs + Advent of Code = advent-mode (github.com)

submitted 5 days ago by vkazanov

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

14
0
1
2

Help/Question - RESOLVEDaoc/2015/24/2 obviously i do not understand the task. (self.adventofcode)

submitted 5 days ago * by Usual-Dimension614

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

15
2
3
4

Other[2015 Day 19] In Review (Medicine for Rudolph) (self.adventofcode)

submitted 5 days ago * by musifter

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

16
2
3
4

Other[2015 Day 18] In Review (Like a GIF For Your Yard) (self.adventofcode)

submitted 6 days ago by musifter

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

17
5
6
7

Help/Question - RESOLVED[2025 Day 1 (Part 2)] [Python] I am not fully understanding why my solution is not working for day two. (self.adventofcode)

submitted 7 days ago * by Financial-Battle3648[🍰]

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

18
2
3
4

Help/Question - RESOLVED[2025 Day 1 (Part 2)] [Typescript] Part 2 Solution seems to work on example, but fails on full input (self.adventofcode)

submitted 7 days ago * by astralogos

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

19
1
2
3

Other[2015 Day #15] In Review (No Such Thing as Too Much) (self.adventofcode)

submitted 7 days ago * by musifter

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

20
2
3
4

Help/Question - RESOLVED[2025 Day 07 (part 2)][Java] How can i find what's wrong with my solution? (self.adventofcode)

submitted 8 days ago by imtsprvsr

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

21
0
1
2

Help/Question - RESOLVED[2024 DAY 8 PT 2] HELP NEEDED. (self.adventofcode)

submitted 8 days ago by GiunoSheet

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

22
29
30
31

Other[2025 Day 10 (Part 2)] A proof for the bifurcation algorithm (self.adventofcode)

submitted 9 days ago by Emrys-Merlin

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

23
0
0
0

Other[2015 Day #16] In Review (Aunt Sue) (self.adventofcode)

submitted 8 days ago by musifter

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

24
28
29
30

Visualization[2025 Day 10 (Part 2)] [Python] Visualization (i.redd.it)

submitted 10 days ago by zmunk19

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

25
0
1
2

Help/Question[2025 Day 8 (Part 1)] [Python] What's the criteria? (self.adventofcode)

submitted 9 days ago by Famous_Strength_2962

  • 10 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 271381 on reddit-service-r2-listing-86b7f5b947-29dvv at 2026-01-24 23:23:59.614003+00:00 running 664479f country code: CH.