• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
karfau

karfau

aoc23_05

Remix of karfau/aocXX_00
Public
Like
aoc23_05
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
README.md

https://adventofcode.com/2023/day/5

Oh boy, what a tedious one. I don't see any quick and easy optimization strategies here. the parsing is the most tedious part of this.

The first part went way more smoothly than I initially thought, by splitting the different steps into smaller pieces.

But the second part is a hard nut to crack. So many runtime/performance issues because the numbers are so "big" that my intail approach no longer works.

Last nut I finally cracked was in v28 by running the following on a powerful desktop machine for nearly an hour: deno run https://esm.town/v/karfau/aoc23_05?v=28 (that is the module URL) to get the correct solution.

Migrated from folder: adventofcode/_2023/aoc23_05

Code
README.mdmain.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.