Welcome to the bar!
We recommend you drink 1 glass of water per drink so you're not hungover tomorrow morning. Your fellow coders have bought you ...
For further actions, you may consider blocking this person and/or reporting abuse
Python solution
I want to suggest a challenge. What should be the subject of my email? Can I send a markdown file?
Hey Vidit, I'm happy to hear you wanna suggest a challenge. You can send any suggestions to yo+challenge@dev.to. Feel free to drop the content of your challenge in the email, markdown file works too. Subject doesn't matter too much, we'll know what it is.
Take care!
Thanks!
Using regular expressions in JavaScript:
We get the following results:
I didn't see yours, but mine is practically identical 😮
Yours has some checks that make it more robust... And that I probably should add to mine 😳
My solution in python
Js vanilla solution (fix below)
What if I drink "11 beers"?
(I have a feeling I'll be severely under-hydrated)
Oh, that's interesting. I'll upload a fix asap. Thanks for reporting!
EDIT: fixed! The problem was the split -not necessary. Also have forgot the existence of reduce! I need a vacation
Your theme looks amazing, what is it?
Thank you! It's a customization I've made from Material Ocean, nothing special :)
Any chance you would be willing to upload it for me somewhere? :)
Well, I could send it to you by email but note that I had customize only the Js, Sass, Css. HTML and Ts parts. Let me know!
Python solution 🐍
My swift solution :