andreyka26_se
Rest day today
battlefield 1, in case you are interested what's the game.
Amazing, just very poor multiplayer implementation by EA, but the gameplay is amazing. Love playing sniper here.
Amazing, just very poor multiplayer implementation by EA, but the gameplay is amazing. Love playing sniper here.
โค1
Daily (254/373 streak until LC cap)
Nice problem, not necessarily some pattern that I know about. But optimal way took me 5-10 mins to come up with and validate.
https://leetcode.com/problems/two-furthest-houses-with-different-colors/?envType=daily-question&envId=2026-04-20
#daily #easy
Nice problem, not necessarily some pattern that I know about. But optimal way took me 5-10 mins to come up with and validate.
https://leetcode.com/problems/two-furthest-houses-with-different-colors/?envType=daily-question&envId=2026-04-20
#daily #easy
๐5
Daily (255/373 streak until LC cap)
Amazing problem, definitely challenges some of the patterns. Should be marked as hard though IMO.
https://leetcode.com/problems/minimize-hamming-distance-after-swap-operations/description/?envType=daily-question&envId=2026-04-21
#daily #medium #pattern
Amazing problem, definitely challenges some of the patterns. Should be marked as hard though IMO.
https://leetcode.com/problems/minimize-hamming-distance-after-swap-operations/description/?envType=daily-question&envId=2026-04-21
#daily #medium #pattern
๐ฅ3
Okay, I like finder in mac, it is better for the most part than windows explorer, but, why the fuck I can create the folder, but cannot create file?????
I should now open terminal or vscode to create fucking file. Why then you allow creating folder there? Does not make sense at all to me.
I should now open terminal or vscode to create fucking file. Why then you allow creating folder there? Does not make sense at all to me.
๐9
andreyka26_se
Okay, I like finder in mac, it is better for the most part than windows explorer, but, why the fuck I can create the folder, but cannot create file????? I should now open terminal or vscode to create fucking file. Why then you allow creating folder there?โฆ
This media is not supported in your browser
VIEW IN TELEGRAM
I mean 3 mouse clicks
๐4
andreyka26_se
I mean 3 mouse clicks
This media is not supported in your browser
VIEW IN TELEGRAM
Compared to this
๐คฎ5
Daily (256/373 streak until LC cap)
I'm sorry for late notice, but this is amazing problem. Can be solved via bruteforce, but also has amazing pattern that I had during one of my real big tech interviews. Recommended definitely
https://leetcode.com/problems/words-within-two-edits-of-dictionary/description/?envType=daily-question&envId=2026-04-22
#daily #medium #recommend #pattern
I'm sorry for late notice, but this is amazing problem. Can be solved via bruteforce, but also has amazing pattern that I had during one of my real big tech interviews. Recommended definitely
https://leetcode.com/problems/words-within-two-edits-of-dictionary/description/?envType=daily-question&envId=2026-04-22
#daily #medium #recommend #pattern
๐4
Daily (257/373 streak until LC cap)
Pretty solid question for prefix sum, however the intuition is not that easy.
https://leetcode.com/problems/sum-of-distances/description/?envType=daily-question&envId=2026-04-23
#daily #medium #pattern
Pretty solid question for prefix sum, however the intuition is not that easy.
https://leetcode.com/problems/sum-of-distances/description/?envType=daily-question&envId=2026-04-23
#daily #medium #pattern
๐ฅ4
So, question from real prod investigation.
You are high load system, and you are checking metrics of where server sends requests to.
You see 99% of destination ports reported by some low level tool (bpf) equal to 47873.
Apparently this is not usual port, as most of the IPs are leading to cloud providers, eg azure, aws, etc.
What is the actual port?
Hint: small/big endian.
(Posting real answer with explanation in the evening)
You are high load system, and you are checking metrics of where server sends requests to.
You see 99% of destination ports reported by some low level tool (bpf) equal to 47873.
Apparently this is not usual port, as most of the IPs are leading to cloud providers, eg azure, aws, etc.
What is the actual port?
Hint: small/big endian.
(Posting real answer with explanation in the evening)
๐ฅ6
โค3
Daily (258/373 streak until LC cap)
Regular easy problem, practicing more intuition building than any pattern
https://leetcode.com/problems/furthest-point-from-origin/?envType=daily-question&envId=2026-04-25
#daily #easy
Regular easy problem, practicing more intuition building than any pattern
https://leetcode.com/problems/furthest-point-from-origin/?envType=daily-question&envId=2026-04-25
#daily #easy
โค2
andreyka26_se
So, question from real prod investigation. You are high load system, and you are checking metrics of where server sends requests to. You see 99% of destination ports reported by some low level tool (bpf) equal to 47873. Apparently this is not usual portโฆ
The correct answer is 443.
Now explanation. On the low level (BPF) you might have two different bytes order (not bits order though) for number that include ips and ports: big-endian and small-endian. The problem was that some tool assumed wrong endian for port and did reversing of the bytes, however the underlying library was already giving the port in the correct number
Now explanation. On the low level (BPF) you might have two different bytes order (not bits order though) for number that include ips and ports: big-endian and small-endian. The problem was that some tool assumed wrong endian for port and did reversing of the bytes, however the underlying library was already giving the port in the correct number
๐5
Daily (259/373 streak until LC cap)
I mean whenever I see "maximum possible minimum" and hard badge, it is skip, I"m sorry. Took me too much to even understand the problem statement, and today was socializing day I don't even have energy to solve hard nonsense right now.
https://leetcode.com/problems/maximize-the-distance-between-points-on-a-square/description/?envType=daily-question&envId=2026-04-25
#daily #hard
I mean whenever I see "maximum possible minimum" and hard badge, it is skip, I"m sorry. Took me too much to even understand the problem statement, and today was socializing day I don't even have energy to solve hard nonsense right now.
https://leetcode.com/problems/maximize-the-distance-between-points-on-a-square/description/?envType=daily-question&envId=2026-04-25
#daily #hard
โค6
Daily (260/373 streak until LC cap)
Amazing problem, really recommended, it if first of all not bullshit, it has well known pattern, well known algo in computer science, I personally was asked to implement similar in one of my interviews to big tech
https://leetcode.com/problems/detect-cycles-in-2d-grid/description/?envType=daily-question&envId=2026-04-26
#daily #medium #pattern #recommend
Amazing problem, really recommended, it if first of all not bullshit, it has well known pattern, well known algo in computer science, I personally was asked to implement similar in one of my interviews to big tech
https://leetcode.com/problems/detect-cycles-in-2d-grid/description/?envType=daily-question&envId=2026-04-26
#daily #medium #pattern #recommend
LeetCode
Detect Cycles in 2D Grid - LeetCode
Can you solve this real interview question? Detect Cycles in 2D Grid - Given a 2D array of characters grid of size m x n, you need to find if there exists any cycle consisting of the same value in grid.
A cycle is a path of length 4 or more in the grid thatโฆ
A cycle is a path of length 4 or more in the grid thatโฆ
๐4
This media is not supported in your browser
VIEW IN TELEGRAM
This guyโs really fighting with it๐
๐4โค2