andreyka26_se
606 subscribers
582 photos
66 videos
6 files
294 links
Hey, I'm software engineer at Microsoft, with 7 years of experience. Here we are talking about F(M)AANG big tech interviews: leetcode, system design and corpo life.

YouTube: @andreyka26_se
Instagram: andreyka26_se
TikTok: @andreyka26__
Download Telegram
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
😁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
2
again leadership visits, snacks:
Asked copilot to prove me that .net/c# linq .GroupBy() will retain the order within the group as in original sequence.

This guy has an ability to simulate .net test with python, I'm impressed a lot
This media is not supported in your browser
VIEW IN TELEGRAM
When you check Leetcode solution with some very “intuitive” recursive calls
😁10🔥2
Next video is hint to problem
This media is not supported in your browser
VIEW IN TELEGRAM
4🔥2🤡2
This media is not supported in your browser
VIEW IN TELEGRAM
🤡31
This media is not supported in your browser
VIEW IN TELEGRAM
👎2
This media is not supported in your browser
VIEW IN TELEGRAM
😁3
This media is not supported in your browser
VIEW IN TELEGRAM
👎2
This media is not supported in your browser
VIEW IN TELEGRAM
🤯3😁1
Claude Sonnet 4. Agent mode. Asked it to cover the class with test cases. FYI: there is no single place in our code base where we do for loop for single iteration
😁4
Hints.

Hint2: On every recursion, try 4 choices of pouring and sum them and add multiplication by 1/4 (as we have equal probability of choosing any of 4)

return 0.25 * (option1 + option2 + option3 + option4)


Hint 3: you gonna have only 2 variable in recursion, so this can be 2 Dimensional DP
👍3
Solution top down and bottom up DP
2
Me, pretending I missed notification and don't see message "could you pls review that pr"
12