Happy May! I hope you had a good end to your April. Mine was full, but wonderful. Let’s go!
Was this forwarded to you? You can subscribe here!
After the conference, I admit I spent a lot of the rest of the week just catching up on emails and decompressing. I started reading the Mistborn series, and I’m loving it so far!
Also! I will be speaking (virtually) at All Day Hey! 2022 this week! If you’d like to get tickets, use code
CASSIDYSDAYOUT for 10% off! It should be a blast and it’s available both in person and online.
Explore topics from space travel to filmmaking on The ReadME Project.
Last week, I had you merge intervals together. This was a sneakily tricky one! Great job Will, Andrew, Jonathan, Leyan, Les, Rafael, Tyson, Dan, Divyansh, Gülşah, Amine, Thierry, Don, Steven, Claude, Ten, Conor, and Giancarlo!
This week’s question:
Implement a simple version of autocomplete, where given an input string
s and a dictionary of words
dict, return the word(s) in
dict that partially match
s (or an empty string if nothing matches).
let dict = ['apple', 'banana', 'cranberry', 'strawberry'] $ simpleAutocomplete('app') $ ['apple'] $ simpleAutocomplete('berry') $ ['cranberry', 'strawberry'] $ simpleAutocomplete('fart') $ 
Someone asked, “Whose car is this? Where are you headed? What do you do?”
The miner replied, “Mine.”
That’s all for now, folks! Have a great week. Be safe, make good choices, and when a baby waves at you, wave back!
Special thanks to Gabor, Stephen, IceSloth, Alaska, Josh, Conor, Ezell, Pedro, Karthic, Ximena, Paige, Zev, Sebastián, Ben, and Sema for supporting my Patreon and this newsletter!
website | twitter | patreon | github | twitch | codepen | polywork