I hope your week was a fun one. Mine was packed with podcasts, a couple events, and meetings. Onwards!
This week’s sponsor is Mux!
Mux is the API to video that changes that. Instead of spending your time learning an entirely new vocabulary, you can just think about Video and how you want to use it. What Stripe did for payments and Twilio did for telephony, Mux does for video.
Take any video file or live stream and make it play beautifully at scale on any device, powered by magical-feeling features like automatic thumbnails, animated gifs, and data-driven encoding decisions. Spend your time building the experience and application that people want, not drudging through ffmpeg documentation.
This week’s question:
Given a string
str containing only the characters
y, change it into a string such that there are no matching adjacent characters. You’re allowed to delete zero or more characters in the string. Find the minimum number of required deletions.
$ everyOther('xxyxxy') $ 2 // str becomes 'xyxy' $ everyOther('yyyyy') $ 4 // str becomes 'y'
I went to a zoo and there was a baguette in a cage.
The keeper said it was bread in captivity!
That’s all for now, folks! Have a great week. Be safe, make good choices, and stay warm!
Special thanks to Gabor, Stephen, Shell, IceSloth, Luna, and Emad for supporting my Patreon and this newsletter!
website | twitter | patreon | github | codepen | twitch