Thanks everyone for the stream. Recording is there. If you struggle with Dynamic Programming thing - we discussed how to solve these type of problems + discussed consistent hashing and sharding in general, e.g. why hash(key) % instances is bad
❤13
You know, I think I got the meaning. I am 25, half of me is already in crisis of middle age. But I just got one thing:
Happiness, is when you have these 15 eur to order sushi, so you have a bit of dinner, and then you perform big impact and lay down. While you are trying to fall asleep - you realise: “fuck Im hungry”. Then you go get your sushi that you left finish them, make yourself sandwich on top, and eat it. This is it, THE MEANING.
© poor MS engineer from nowhere
Happiness, is when you have these 15 eur to order sushi, so you have a bit of dinner, and then you perform big impact and lay down. While you are trying to fall asleep - you realise: “fuck Im hungry”. Then you go get your sushi that you left finish them, make yourself sandwich on top, and eat it. This is it, THE MEANING.
© poor MS engineer from nowhere
😁9🤯6🤮1
Today's daily:
https://leetcode.com/problems/fruits-into-baskets-iii/description/?envType=daily-question&envId=2025-08-06
same as yesterday's, but O(n^2) will give you TLE. So you need to implement something smarter. Somebody mentioned segment tree yesterday, so you were right xDD
Hint1:first approach would be to think about splitting the basket somehow, with aggregated maxes(easy solution) Sqrt time complexity
Hint2: segment tree 💀💀💀(second, more optimized, but hard to implement) Log time complexity
#daily
https://leetcode.com/problems/fruits-into-baskets-iii/description/?envType=daily-question&envId=2025-08-06
same as yesterday's, but O(n^2) will give you TLE. So you need to implement something smarter. Somebody mentioned segment tree yesterday, so you were right xDD
Hint1:
Hint2:
#daily
LeetCode
Fruits Into Baskets III - LeetCode
Can you solve this real interview question? Fruits Into Baskets III - You are given two arrays of integers, fruits and baskets, each of length n, where fruits[i] represents the quantity of the ith type of fruit, and baskets[j] represents the capacity of the…
❤2
This media is not supported in your browser
VIEW IN TELEGRAM
When you check Leetcode solution with some very “intuitive” recursive calls
😁10🔥2
Today's daily:
https://leetcode.com/problems/find-the-maximum-number-of-fruits-collected/description/?envType=daily-question&envId=2025-08-07
The reminder to carefully read the description. If you apply all the constraints from the problem there and aply basic logic + dp - it will be eas yto solve. I would say this one should be mid
#daily
https://leetcode.com/problems/find-the-maximum-number-of-fruits-collected/description/?envType=daily-question&envId=2025-08-07
The reminder to carefully read the description. If you apply all the constraints from the problem there and aply basic logic + dp - it will be eas yto solve. I would say this one should be mid
#daily
LeetCode
Find the Maximum Number of Fruits Collected - LeetCode
Can you solve this real interview question? Find the Maximum Number of Fruits Collected - There is a game dungeon comprised of n x n rooms arranged in a grid.
You are given a 2D array fruits of size n x n, where fruits[i][j] represents the number of fruits…
You are given a 2D array fruits of size n x n, where fruits[i][j] represents the number of fruits…
👍3🤡2
Today daily is dp + probabilities. I'm not big fun of probabilities, but here they are simple
https://leetcode.com/problems/soup-servings/description/?envType=daily-question&envId=2025-08-08
#daily
https://leetcode.com/problems/soup-servings/description/?envType=daily-question&envId=2025-08-08
#daily
LeetCode
Soup Servings - LeetCode
Can you solve this real interview question? Soup Servings - You have two soups, A and B, each starting with n mL. On every turn, one of the following four serving operations is chosen at random, each with probability 0.25 independent of all previous turns:…
👍2