Some solutions in TypeScript and Bun. Might not do all of them, as these are not my main solutions. This is just for fun 😁.
Day | #1 | #1 Answer | #2 | #2 Answer |
---|---|---|---|---|
Day 1: Trebuchet?! | 🌟 | 54304 | 🌟 | 54418 |
Day 4: Scratchcards | 🌟 | 27454 | 🌟 | 6857330 |
Simple performance using console.time
. Times vary quite a bit between runs, but at least it's some indication. Computer is a MacBook Pro M1 Pro, 32 GB RAM.
Day | #1 | #2 | Improvement |
---|---|---|---|
1 | 0.36 ms | 0.29 ms | - |
4 | 1.02 ms | 0.86 ms | - |