andreyka26_se
609 subscribers
577 photos
66 videos
6 files
290 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
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
Personal assistant is here
👍8😁42
Have you heard about this one?
https://en.wikipedia.org/wiki/Rendezvous_hashing

It is so nice, I would say might be preferred option instead of consistent hashing.

Actually we can write POC during the stream
6
Starcraft 2 stream in 1-1.5 hours?
thumbup or thumbdown
1🔥6👍41
Sorry, on working pc it just cannot handle obs and starcraft(( we will stream on Monday
👍5
Daily

https://leetcode.com/problems/reordered-power-of-2/description/?envType=daily-question&envId=2025-08-10

Hint: check all power of 2, try to think how sorting might help here

#daily
🔥3
Streaming today is 50/50. It will be shifted in case I cannot make it today's evening.

Topic - I want to cover sharding topic fully. So next streams for system design section we are reviewing how sharding works in different storages, and gonna implement POCs for each of the type🔥🔥🔥
🔥8
Starcraft in 30-40 mins , this time should not lag
1
I guess recording will be there , played a lot of games, not on diamond, but on plat level. But yea, we did stream, and it was not lagging that much
2
Solutions and hints:

hint1: to get the all powers of 2 that number consists of - you basically need to get it's binary represantation as this is how binary number works {for each index I in binary representation, the number can be got by SUM( VALUE[I] * 2 ^ I )}
for binary 1011 we get => (1 * 2 ^ 3) (0 * 2 ^ 2) + (1 * 2 ^ 1) + (1 * 2 ^ 0) = 8 + 0 + 2 + 1 = 11.

So first hint is how to get your array - just decompose it's binary representation


hint2: think about how large the array of your num can be, given 1 <= n <= 10^9. Recall 10^ 9 comparing to 2^32, and apply bruteforce.
🔥2