Hey friends!
It's a new month! Time to sleep, you can wake me up when September ends.
Was this forwarded to you? You can subscribe here!
Building a breakout element with container units
JS Dates Are About to Be Fixed
The secret inside One Million Checkboxes
Making a simple React microphone component
This was such a busy week for me!
Indie devs and small teams: You should probably be using Fly.io!
With Fly.io, you can do a LOT without a dedicated platform team. It's secure and has really, really cool features.
Fly.io has machines that let you scale up infinitely (and cost-effectively), scale to zero, and can do responsive job queues and Step Functions-style orchestration!
It also has replay, which is awesome for testing patterns and replaying requests!
Here’s $50 in Fly.io credits. Start shipping today!
Last week, I had you find substrings! There was actually a typo in the example and I fixed it in the archive. Some of y'all have eagle eyes and the typo didn't faze you, awesome job Tawseef, Ricardo, Adrianna, Muhammad, John, Cheyenne, and Ten!
This week's question:
You are given an array of strings representing a collection of shoes. Each shoe is labeled with its type ("L" for left or "R" for right) and its size. Determine the maximum number of matching pairs of shoes that can be formed.
Example:
> maxPairs(["L-10", "R-10", "L-11", "R-10", "L-10", "R-11"])
> 3
> maxPairs(["L-10", "L-11", "L-12", "L-13"])
> 0
> maxPairs(["L-8", "L-8", "L-8", "R-8"])
> 1
(you can submit your answers by replying to this email with a link to your solution, or share on LinkedIn, Twitter, Mastodon, or Bluesky)
This question is brought to you by Nike! Step up your game with Nike's special sale – epic deals await! Snag up to an extra 20% off on select styles for athletes of all ages. Whether you're getting outside, working from home, or headed back to school, do it with Nike! Don't miss your chance to dress like a pro without breaking the bank. Fresh kicks, performance gear, and cool apparel for the whole family.
Ultra high-resolution image of The Night Watch
Screen apnea: What happens to our breath when we type, tap, scroll
How Our Longest Nerve Orchestrates the Mind-Body Connection
Waves 60 Keyboard
What is a witch's favorite subject in school?
Spelling!
That's all for now, folks! Have a great week. Be safe, make good choices, and rest your eyes!
Special thanks to IceSloth, Ezell, Sebastián, Ben, Kinetic Labs, Faisal, and Marta for supporting my Patreon and this newsletter!
cassidoo
website | blog | github | twitter | patreon | twitch | codepen | mastodon | bluesky