Hey team!
Welcome back! Sorry I missed out on sending this out last week. If I'm being honest, I totally forgot and went to bed early. Oops. 🙃
Anyway, onward!
Â
Web links of the week
Paper.js
The Cost of JavaScript
Writing your own ESLint Plugins
Tenuki: a web-based go board and JavaScript library
Bunny tab switching
Â
Something that interested me this week
My goodness friends, it was a crazy week of news. It really made me think about the capacity of humans to take bad news. I don't know if there's been any studies on the subject (I couldn't find any), but we're at a point in history where we're absorbing more news and information than ever before. It's easy to feel overwhelmed and small when you're so bombarded by
everything.
That being said, here are some of the things I've been grateful for during the past week for giving me a mental break:
- Incredibles 2 + Ocean's 8, both really fun movies I genuinely enjoyed
- The Great British Baking Show, basically a show chock full of wholesome memes
- Fortnite, my latest game obsession
- CodePen Challenges, it's so fun both coding and seeing what people have made
- /r/MechanicalKeyboards, my home
- The Steam Summer Sale, fun for the brain, bad for the wallet
Â
Interview question of the week
Last time, I had you return a pair whose product is closest to a number, given an array and said number.
Thomas Vaeth did a great job with his solution!Â
I'm excited about this week's question, it's funky (and one that someone was given recently
in real life):
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
Example:
waterTrap([2,0,2])
> 2
Structure is like this:
| |
|_|
waterTrap({3, 0, 0, 2, 0, 4})
>10
Structure is like this:
|
| |
| | |
|__|_|
(We can trap 6 units of water between 3 and 2, 1 unit on top of bar 2, and 3 units between 2Â
and 4)
Â
Cool things from around the internet
SA Oblivion Photo Album
Four Reasons We Don’t Have Flying Cars—Yet
Building Complex Machines Using LEGO
True Stories from IKEA
Â
Joke
How do you think the unthinkable?
With an itheberg.
Â
That's all for now, folks! Hope you have a great week. Be safe, make good choices, and wash your hands.
cassidoo