Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Link to code if you want to check it out: https://github.com/rossvasquez/AdventOfCode_2023/blob/main/december_05/part_two_v2.js
https://github.com/Joxter/advent-of-code/blob/master/2023/js/day05.js JS, 4ms (macbook air m1). I don't believe it is an ideal solution, but I tried to make it clear and simple
I didn't go for any optimization, just what I thought was a straightforward "clean" solution that was good enough: https://github.com/torbensky/advent-of-code-2023/blob/main/day05/solution.ts
My solution runs both parts in 3.5 ms on my 1.80 GHz Dell machine, which I think is pretty good for JavaScript. I explain my solution in the comments.
Related posts
- đŸ’¡Automatic Deployment of your project dependencies updates on GCP : Efficiency vs. Cost?
- Composable architecture example: Go headless (best practices)
- Create a Chat App With Node.js
- React Magic: How to Create a Custom Hook for Seamless Data Retrieval.
- Exploring Advanced SQL Techniques: Aggregation Methods for Structured Data Retrieval