andreyka26_se
610 subscribers
566 photos
66 videos
2 files
284 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
Daily

Easier than hard if you know the formulas and coecistance of least common multiple (LCM) and greates common divisor (GCD).

https://leetcode.com/problems/replace-non-coprime-numbers-in-array/description/?envType=daily-question&envId=2025-09-16

#daily
Daily

Today is a bit late, was having students for system design.
I liked today's daily a lot. Small hint - think of something like lazy loading + MVCC in postgres, it will lead you to a correct answer.

https://leetcode.com/problems/design-a-food-rating-system/description/?envType=daily-question&envId=2025-09-17
I found system design question, that does not have solutions on the open internet. If you are looking for a challenge in system design - try designing "Virtual waiting room" aka "Virtual waiting queue".

https://www.cloudflare.com/en-gb/application-services/products/waiting-room/

This is the "clever" FIFO sticky rate limiter that is needed for example in case of ticketmaster for Taylor Swift traffic spike (14M req per sec).

How it works: it handles all 14M requests, and in FIFO manner it lets the first users to start booking, but still allowing only static amount of users to book (let's say 20k) simultaneously. While you are in queue your position and how many people before you are shown on the page. Once it is your turn - the page will load ticketmaster seat selection map.

How would you do it?
❀7
Daily

Pretty similar question to yesterday's. Learning how we can use "soft deletion" to make better complexity

https://leetcode.com/problems/design-task-manager/description/?envType=daily-question&envId=2025-09-18

#daily
Random offline system design
πŸ‘7
πŸ”₯2
Daily

The actual problem is quite interesting and tests different datastructures.

Also fucking constraints are misleading (I will explain in the solution)

https://leetcode.com/problems/implement-router/description/?envType=daily-question&envId=2025-09-20

However I believe that the amount of code produced here matches rather hard problem.

#daily
πŸ‘4
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ‘1
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ‘1
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ‘1
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ‘1
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ‘1
well, agree, this week was good, without math shit
❀4πŸ”₯2
We are living in crazy time. If algorithm does not know you - you are not allowed to watch youtube
❀5
Daily

A bit messy with code, but it is not much harder than yesterday's mid.

However, there is interesting topic for which Datastructures to use here (check solution in comment)

https://leetcode.com/problems/design-movie-rental-system/description/?envType=daily-question&envId=2025-09-21

#daily
πŸ”₯1
(((((((((

first I switched from c# to javascript, cause it is less messy, and realized, JS does not have minheap.

So I switched to python, that has heapq, and even less messy so that now I don't have sorted set with tasty O(log n)
πŸ”₯3
For now, yes, thanks for opening my eyes, apologies, in leetcode there IS a priority queue. It is exposed by library https://datastructures-js.info/docs/priority-queue

This library is kind of preimported for your leetcode question.
How I was doing it before xDD

Actually in real interview you don't have to know this lib and use it. You can just say interviewer: yeah, I know there is a heap DS, it can be implemented using array, it has log(n) complexity bla bla bla, BUT, I will kind of assume this is the heap, and instead use array and sort it after every insert.