This media is not supported in your browser
VIEW IN TELEGRAM
He brought a friend😆😆
Now I need to provide for them apparently. I guess I need to push for promotion..
Now I need to provide for them apparently. I guess I need to push for promotion..
😁9❤7
Daily (295/373 streak until LC cap)
Actually it is easy question, I don't know why it is labeled as medium. Go for it.
https://leetcode.com/problems/destroying-asteroids/description/?envType=daily-question&envId=2026-05-31
#daily #medium #nopattern
Actually it is easy question, I don't know why it is labeled as medium. Go for it.
https://leetcode.com/problems/destroying-asteroids/description/?envType=daily-question&envId=2026-05-31
#daily #medium #nopattern
🔥2
andreyka26_se
I will post about Segment tree and Fenwick tree + simple problems for them so that you all have the pattern under you hand to recall it quickly before the interview. Don't think segment trees are complicated - therefore they are not asked during the real…
Heap.
As first prerequisite to understand the "array-based" representation of the trees -> we can check heap data structure.
Heap is used to efficiently get minimum (minheap) or maximum (maxheap) element.
You can do it just with plain array: insert all new items, and scan array to find the minimum with
It can be used as priority queue, in python it is implemented via
One of the applications can be Dijkstra algorithm that is using priority queue under hood.
In the comments we will discuss different implementations and tree representations.
#leetcode #heap #datastructures
As first prerequisite to understand the "array-based" representation of the trees -> we can check heap data structure.
Heap is used to efficiently get minimum (minheap) or maximum (maxheap) element.
You can do it just with plain array: insert all new items, and scan array to find the minimum with
O(n) but heap allows O(log(n)) for both insert and findmin() operations.It can be used as priority queue, in python it is implemented via
heapq.One of the applications can be Dijkstra algorithm that is using priority queue under hood.
In the comments we will discuss different implementations and tree representations.
#leetcode #heap #datastructures
👍6
Daily (296/373 streak until LC cap)
Easy, greedy problem
https://leetcode.com/problems/minimum-cost-of-buying-candies-with-discount/description/?envType=daily-question&envId=2026-06-01
#daily #easy #nopattern
Easy, greedy problem
https://leetcode.com/problems/minimum-cost-of-buying-candies-with-discount/description/?envType=daily-question&envId=2026-06-01
#daily #easy #nopattern
👍3
Segment tree.
Previously we have discussed Heap. Today we are doing Segment Tree. Don't skip, my friend was asked question for Segment Tree during Data Brix interview - so it is asked, rarely but still.
We will consider the simplest segment tree application range sum query over mutated array: https://leetcode.com/problems/range-sum-query-mutable/description/?envType=problem-list-v2&envId=segment-tree
Go to comments for the DS overview
#leetcode #segmenttree #datastructures
Previously we have discussed Heap. Today we are doing Segment Tree. Don't skip, my friend was asked question for Segment Tree during Data Brix interview - so it is asked, rarely but still.
We will consider the simplest segment tree application range sum query over mutated array: https://leetcode.com/problems/range-sum-query-mutable/description/?envType=problem-list-v2&envId=segment-tree
Go to comments for the DS overview
#leetcode #segmenttree #datastructures
👍6🔥3❤2
Daily (297/373 streak until LC cap)
Initial thought: wtf? Then I only realize the problem: we need to take ONLY SINGLE ride of land and SINGLE ride of water.
(non-brute-force solution exists)
https://leetcode.com/problems/earliest-finish-time-for-land-and-water-rides-i/description/?envType=daily-question&envId=2026-06-02
#daily #easy #nopattern
Initial thought: wtf? Then I only realize the problem: we need to take ONLY SINGLE ride of land and SINGLE ride of water.
(non-brute-force solution exists)
https://leetcode.com/problems/earliest-finish-time-for-land-and-water-rides-i/description/?envType=daily-question&envId=2026-06-02
#daily #easy #nopattern
👍3
Google has broke impressions metrics for a moment.
Interesting thing it is all about my article for dockerizing firebase components (imagine, they didnt or dont have it)
Interesting thing it is all about my article for dockerizing firebase components (imagine, they didnt or dont have it)
1🤔4
andreyka26_se
Google has broke impressions metrics for a moment. Interesting thing it is all about my article for dockerizing firebase components (imagine, they didnt or dont have it)
Expl:
Usually it is 1-3k impressions per day.
And suddenly, it is 80k spike, but clicks num didnt change.
Usually it is 1-3k impressions per day.
And suddenly, it is 80k spike, but clicks num didnt change.
1🤔3
Daily (298/373 streak until LC cap)
Same problem as yesterday, and the same solution, but just mid
https://leetcode.com/problems/earliest-finish-time-for-land-and-water-rides-ii/description/?envType=daily-question&envId=2026-06-03
#daily #medium #nopattern
Same problem as yesterday, and the same solution, but just mid
https://leetcode.com/problems/earliest-finish-time-for-land-and-water-rides-ii/description/?envType=daily-question&envId=2026-06-03
#daily #medium #nopattern
1❤4
I will tell you 100% working fix for memory leak. It was proven already in 2 big tech companies.
The fix is called SDP - safe deployment practices, one of the points there is regular deployment which causes nodes simply to restart.
The fix is called SDP - safe deployment practices, one of the points there is regular deployment which causes nodes simply to restart.
1😁9
andreyka26_se
I will tell you 100% working fix for memory leak. It was proven already in 2 big tech companies. The fix is called SDP - safe deployment practices, one of the points there is regular deployment which causes nodes simply to restart.
Typically large companies might have “change freeze” during important event for few weeks. It is overall debatable, as there is data that proves it causes more harm than benefit.
But, the change freeze is typically what reveals memory leak as a problem, and generally people just keep restarting nodes or redeploying the same builds to keep everything healthy.
But, the change freeze is typically what reveals memory leak as a problem, and generally people just keep restarting nodes or redeploying the same builds to keep everything healthy.
1❤4
andreyka26_se
Typically large companies might have “change freeze” during important event for few weeks. It is overall debatable, as there is data that proves it causes more harm than benefit. But, the change freeze is typically what reveals memory leak as a problem, and…
Ofc, usually memory leak is never addressed, as it is extremely hard to get memory dumps at a time you need it(or get them at all) due to security, compliance, privacy and bureaucracy.
1❤4
Daily (299/373 streak until LC cap)
Should be marked as easy actually.
https://leetcode.com/problems/total-waviness-of-numbers-in-range-i/description/?envType=daily-question&envId=2026-06-04
#daily #medium #nopattern
Should be marked as easy actually.
https://leetcode.com/problems/total-waviness-of-numbers-in-range-i/description/?envType=daily-question&envId=2026-06-04
#daily #medium #nopattern
1❤4
Good morning folks.
I see +70 new people😆😆
And as always, have no idea, wtf happened, how did you find me?
I see +70 new people😆😆
And as always, have no idea, wtf happened, how did you find me?
🔥9
Thanks https://t.me/interview_runner ❤️
Checked channel. The guy is sharing a lot of interview related things, leetcode, and more practical stuff.
So you all might be interested.
Checked channel. The guy is sharing a lot of interview related things, leetcode, and more practical stuff.
So you all might be interested.
1❤11👍4
andreyka26_se
Thanks https://t.me/interview_runner ❤️ Checked channel. The guy is sharing a lot of interview related things, leetcode, and more practical stuff. So you all might be interested.
Some time ago we had even System Design mock with Vlad.
We were designing either my Presence in teams or Messenger if I am not mistaken. Was it offer from AWS after that or no, Vlad?
And I guess the initial connection was through our legend: Vlad Ten.
What a small world.
We were designing either my Presence in teams or Messenger if I am not mistaken. Was it offer from AWS after that or no, Vlad?
And I guess the initial connection was through our legend: Vlad Ten.
What a small world.
1👍11