Day 8 in Bangalore

I'm on a mission to master programming and tackle any coding challenge that comes my way. In this series, you'll find my daily journal entries, presented as simple bullet points. Nothing fancyβjust my honest thoughts and experiences from each day. So, please, no judgment! π
Join me as I document my tech journey in Bangalore. Let's dive in!
Day 8 (07/07/24)
Today's LeetCode was another easy one -> 1518. Water Bottles

This one is pretty self explanatory. It just took me like around 2 mins to solve and implement it. Here's the code:
class Solution: def numWaterBottles(self, numBottles: int, numExchange: int) -> int: numDrunk = numBottles while numBottles//numExchange: numDrunk += numBottles//numExchange numBottles = numBottles%numExchange + numBottles//numExchange return numDrunkHere, since we drink all the initial bottles, I'm setting
numDrunktonumBottles. After that we will just keep looping as long as we have empty bottles that we can exchange andnumDrunkaccordingly.I solved a bunch of other problems from Striver's A2Z DSA Sheet. I'm done with the easy problems on arrays. Time to move on to the medium ones now!

I went on a binge watching spree π and completed the Season 1 and 2 of Mob Psycho. Gonna watch the Season 3 soon too.
Played a lot of League of Legends with friends. We probably won a couple of games. It was pretty stressful but fun as usual.
Short one today! As I spent most of my time watching anime... π




