Hey friends!
I hope your week was a good one. I spent a lot of time working on some fun personal projects and seeing friends and family. Anyway, onwards!
Was this forwarded to you? You can subscribe here!
Get The Screen Width & Height Without JavaScript
Utility First CSS Isnโt Inline Styles (video)
How I fell in love with Astro
Build a retro gaming app โ Web Dev Challenge S1E2 (video)
I'm gonna not talk about the wild political landscape in the U.S. right now because everyone is. But ya know, make sure you're registered to vote.
Anyway, I went to my first Code & Coffee meetup this week, and it was delightful! It's rare to have the opportunity to meet up with fellow tech folks that aren't already in your circles, and it was really nice to get to know some new people.
I have about 4 or 5 side projects in the works right now, coding-related, keyboard-related, just-for-fun, and I'm definitely trying to focus and actually finish one this week. We'll see if I have anything to share in the next issue, ha!
Join Amazon Web Services (AWS) and DevOps Institute for this webinar on strategies, services, and generative AI-powered AWS Marketplace tools that enable developers to build faster, deploy continuously, and use cloud resources at scale.
Last week, I had you find an increasing subsequence. There were some clever answers, awesome work Miguel, Muhammad, Gu, Josh, Etienne, Amine, Kriszti, Charles, Claude, Ricardo, Saad, Ten, Mazen, Sreetam, John, and
epochDVKHN!
This week's question:
Given a string s
and a dictionary of words dict
, determine if s
can be segmented into a space-separated sequence of one or more dictionary words.
Example:
> wordBreak("leetcode", ["leet", "code"])
> true
> wordBreak("catsandog", ["cat", "cats", "and", "sand", "dog"])
> false
// Although "cat", "cats", "and", and "dog" are in the dictionary, the string does not have a valid segmentation where all parts are in the dictionary.
> wordBreak("aaaaaaaa", ["aa", "aaa"])
> true
// "aaaaaaaa" can be segmented in multiple ways such as "aa aa aa aa" or "aaa aa aaa" where "aa" and "aaa" are in the dictionary.
(you can submit your answers by replying to this email with a link to your solution, or share on LinkedIn, Twitter, Mastodon, or Bluesky)
Public toilets are vanishing and thatโs a civic catastrophe
Friendship and Social Fitness
Green Ergo with GMK Blot
Type in Morse code by repeatedly slamming your laptop shut
What do you call a biscuit that is more intelligent than you?
A smart cookie!
That's all for now, folks! Have a great week. Be safe, make good choices, and speak your mind!
Special thanks to IceSloth, Ezell, Sebastiรกn, Ben, Kinetic Labs, and Faisal for supporting my Patreon and this newsletter!
cassidoo
website | blog | github | twitter | patreon | twitch | codepen | mastodon | bluesky