Hey friends!
I hope you had a good week! I celebrated my birthday with family and friends and it was a really great time. Let's learn!
Was this forwarded to you? You can subscribe here!
CSS Wrapped 2024
Existential React questions and a perfect Modal Dialog
Building an e-commerce app in 4 hours (video)
Announcing Elementary v4.0
I kept up my blogging this week! In case you missed it, I have been writing a blog post for every day in December. It has been kind of challenging to come up with ideas for posts (I was very optimistic when I started), BUT we're doing it!
Here's the posts I wrote this week:
Will I keep it up for another week? We'll see, heh.
No sponsor this week, but here's a few wonderful non-profits who could use your support this holiday season:
Last week, I had you help Santa with his roll call! Ho ho ho Andreas, Ender, droffilcasepam, Marco, David, Ten, Ashish, Austin, Kyle, Ross, Muhammad, Miguel, Diego, Alison, Jeremias, Amine, Vasanth, Ricardo, Kriszti, Chase, Phillip, and Lenny!
This week's question:
Write a function wrapGifts
that finds the maximum number of gifts that can be wrapped using a single strip of wrapping paper of a given width. Each gift has a specific length, and you can only wrap gifts if their total length fits within the paper width without cutting the paper.
Example:
wrapGifts([2, 3, 4, 5], 7)
2 // either gifts 2 and 5, or 3 and 4.
wrapGifts([1, 1, 1, 1, 1, 1, 1], 3)
3
wrapGifts([1, 2, 3, 4, 5], 6)
3 // 1 and 2 and 3
(you can submit your answers by replying to this email with a link to your solution, or share on Bluesky, Twitter, LinkedIn, or Mastodon)
Literature Clock
Flag Stories
HMKB V1 65 BAA RAL1023 keyboard with MT3 Serika
Chicago Kare font by Duane King
I really don't like going to arenas because it's always SO windy in there.
There's just so many fans!
That's all for now, folks! Have a great week. Be safe, make good choices, and fold your laundry sitting on that chair!
Special thanks to IceSloth, Ezell, Sebastián, Ben, Kinetic Labs, Faisal, and Marta for supporting my Patreon and this newsletter!
cassidoo
website | blog | github | bluesky | twitter | patreon | twitch | codepen | mastodon