Daily 405th day streak.
Sorry, it is for yesterday, didn't create post, because had some social life finally 😁😁
The problem is pretty hard for me (didn't really want to invest much time into it even).
There is no real pattern, so pretty unique problem, so I would not recommend.
https://leetcode.com/problems/maximum-number-of-non-overlapping-substrings/description/?envType=daily-question&envId=2026-09-19
#daily #hard #nopattern
Sorry, it is for yesterday, didn't create post, because had some social life finally 😁😁
The problem is pretty hard for me (didn't really want to invest much time into it even).
There is no real pattern, so pretty unique problem, so I would not recommend.
https://leetcode.com/problems/maximum-number-of-non-overlapping-substrings/description/?envType=daily-question&envId=2026-09-19
#daily #hard #nopattern
❤2👍1
Daily 406th day streak.
Right now I'm just going to solve it. Timer started xD. Will update that post.
For now looks exciting, I like things that are "touchable" and the ones I can play in my mind with.
UPD: good problem, a bit of geometry (school level, so good to revise), not really hard problem, however I would say still no pattern, though the problem is fun
https://leetcode.com/problems/circle-and-rectangle-overlapping/description/?envType=daily-question&envId=2026-09-19
#daily #medium #nopattern
Right now I'm just going to solve it. Timer started xD. Will update that post.
For now looks exciting, I like things that are "touchable" and the ones I can play in my mind with.
UPD: good problem, a bit of geometry (school level, so good to revise), not really hard problem, however I would say still no pattern, though the problem is fun
https://leetcode.com/problems/circle-and-rectangle-overlapping/description/?envType=daily-question&envId=2026-09-19
#daily #medium #nopattern
❤2👍1
Today was measuring blood pressure before fight camp (boxing) by doc. Whole my life I had stable 120/80.
Now in the morning, no coffee, nothing -> 132/87😩
One more hypochondriac anxiety. I mean, being scared of cancer was enough God, pls, stop...
Now as typical old people (26+) I will order blood pressure monitor👍👍👍👍
Now in the morning, no coffee, nothing -> 132/87😩
One more hypochondriac anxiety. I mean, being scared of cancer was enough God, pls, stop...
Now as typical old people (26+) I will order blood pressure monitor👍👍👍👍
❤4😁1
Daily 407th day streak
Easy, no pattern, 2 mins coding.
https://leetcode.com/problems/reverse-degree-of-a-string/description/?envType=daily-question&envId=2026-09-20
#daily #easy #nopattern
Easy, no pattern, 2 mins coding.
https://leetcode.com/problems/reverse-degree-of-a-string/description/?envType=daily-question&envId=2026-09-20
#daily #easy #nopattern
❤1
Daily 408th day streak.
What a bullshit question. Has a pattern, but while you are reading the question you are like: "WTF".
However, I have to admit - there is pattern
https://leetcode.com/problems/find-x-value-of-array-i/?envType=daily-question&envId=2026-09-22
#daily #medium #pattern
What a bullshit question. Has a pattern, but while you are reading the question you are like: "WTF".
However, I have to admit - there is pattern
https://leetcode.com/problems/find-x-value-of-array-i/?envType=daily-question&envId=2026-09-22
#daily #medium #pattern
❤1
Daily 409th day streak.
Bullshit question II. WTF is that. Now it is segment trees.
I am not going to do it tbh. This type of nonsense codeforces style shit - no, thanks. I have enough work to do.
Do not recommend.
https://leetcode.com/problems/find-x-value-of-array-ii/description/?envType=daily-question&envId=2026-09-22
#daily #hard #pattern
Bullshit question II. WTF is that. Now it is segment trees.
I am not going to do it tbh. This type of nonsense codeforces style shit - no, thanks. I have enough work to do.
Do not recommend.
https://leetcode.com/problems/find-x-value-of-array-ii/description/?envType=daily-question&envId=2026-09-22
#daily #hard #pattern
❤2
0.0.0.0/0 CIDR - what is that, and why?
If you ever configured routing in cloud, or locally on the machine - you have probably seen it.
What is CIDR?
I will do more detailed post later, but this is the most common way of defining BUNCH of IPs in single entry.
How it works?
When working with IP - it is very nice to be able to operate on the bits rather than 4 numbers split by dots.
You have the following format <ip>/<mask>, e.g. 1.2.3.0/24.
What it all means?
e.g. for 1.2.3.0/24
Now, what the hell is 0.0.0.0/0? why
/0 - means we take ZERO leftmost bits, so no matter what address it is "ANDing" (&) it will give you 0. So it means essentially ANY ADDRESS
#kernel #network
If you ever configured routing in cloud, or locally on the machine - you have probably seen it.
What is CIDR?
I will do more detailed post later, but this is the most common way of defining BUNCH of IPs in single entry.
How it works?
When working with IP - it is very nice to be able to operate on the bits rather than 4 numbers split by dots.
You have the following format <ip>/<mask>, e.g. 1.2.3.0/24.
What it all means?
/24 part is how many leftmost bits you will take for that CIDR (in that case 24 bits / 8 -> first 3 octets of ip: 1.2.3|.X). This helps you to understand whether concrete IP is in that CIDR or not, for example for routing.e.g. for 1.2.3.0/24
1.2.3.1 & 255.255.255.0 = 1.2.3.0 (TRUE)1.2.4.1 & 255.255.255.0 = 1.2.4.0 (FALSE)Now, what the hell is 0.0.0.0/0? why
/0?/0 - means we take ZERO leftmost bits, so no matter what address it is "ANDing" (&) it will give you 0. So it means essentially ANY ADDRESS
#kernel #network
🔥4❤2
andreyka26_se
0.0.0.0/0 CIDR - what is that, and why? If you ever configured routing in cloud, or locally on the machine - you have probably seen it. What is CIDR? I will do more detailed post later, but this is the most common way of defining BUNCH of IPs in single…
Following up my own question I asked myself. Why
Any address
The thing is that it is enforced by linux kernel for routing table. Linux implement Longest Prefix Match (TRIE) for these CIDRs, and canonically host part should be zeroed: https://www.rfc-editor.org/rfc/rfc9164.html#section-4.3
It means our earlier example
To play with routes/CIDRs: https://tools.andreyka26.com/ip-checker
#kernel #network
0.0.0.0?Any address
/0 (taking ZERO leftmost bits) will give ZERO. So we can as well define it as 1.1.1.1/0 or 1.2.3.4/0??The thing is that it is enforced by linux kernel for routing table. Linux implement Longest Prefix Match (TRIE) for these CIDRs, and canonically host part should be zeroed: https://www.rfc-editor.org/rfc/rfc9164.html#section-4.3
It means our earlier example
1.2.3.0/24 will be rejected if defined like that 1.2.3.100/24 (however technically still it works)To play with routes/CIDRs: https://tools.andreyka26.com/ip-checker
#kernel #network
❤2
andreyka26_se
0.0.0.0/0 CIDR - what is that, and why? If you ever configured routing in cloud, or locally on the machine - you have probably seen it. What is CIDR? I will do more detailed post later, but this is the most common way of defining BUNCH of IPs in single…
One of the applications for CIDR and 0.0.0.0/0 is cloud routing table configuration.
As shown on the screenshot:
- 10.0.0.0/16 we have private IPv4 address range that will be routed to locally (within VPC in case of AWS)
- 0.0.0.0/0 for everything else the request will use Internet Gateway Interface (and consequently, usually, will make it to outside internet).
#network
As shown on the screenshot:
- 10.0.0.0/16 we have private IPv4 address range that will be routed to locally (within VPC in case of AWS)
- 0.0.0.0/0 for everything else the request will use Internet Gateway Interface (and consequently, usually, will make it to outside internet).
#network
❤2
Now as you see the Longest Prefix Match usage in WHOLE INTERNET.
Here is good leetcode problem to remind yourself how it works: https://leetcode.com/problems/implement-trie-prefix-tree/description/
Here is good leetcode problem to remind yourself how it works: https://leetcode.com/problems/implement-trie-prefix-tree/description/
LeetCode
Implement Trie (Prefix Tree) - LeetCode
Can you solve this real interview question? Implement Trie (Prefix Tree) - A trie [https://en.wikipedia.org/wiki/Trie] (pronounced as "try") or prefix tree is a tree data structure used to efficiently store and retrieve keys in a dataset of strings. There…
❤4
Daily 410th day streak
Amazing problem, has 2 patterns, classic, easy to understand one. I do recommend. And it is not really hard
https://leetcode.com/problems/minimum-operations-to-reduce-x-to-zero/description/?envType=daily-question&envId=2026-09-23
#daily #medium #pattern
Amazing problem, has 2 patterns, classic, easy to understand one. I do recommend. And it is not really hard
https://leetcode.com/problems/minimum-operations-to-reduce-x-to-zero/description/?envType=daily-question&envId=2026-09-23
#daily #medium #pattern
❤2
Daily 411th day streak
Easy, 1 min coding, no pattern though.
https://leetcode.com/problems/smallest-index-with-digit-sum-equal-to-index/description/?envType=daily-question&envId=2026-09-24
#daily #easy #nopattern
Easy, 1 min coding, no pattern though.
https://leetcode.com/problems/smallest-index-with-digit-sum-equal-to-index/description/?envType=daily-question&envId=2026-09-24
#daily #easy #nopattern
❤3
Question: is it only me???
I either only work "just enough to have an update tomorrow", or I go into superman mode 12+ hours a day.
Besides that, I can't perceive work as 8 hours a day of handling a stream of tasks, equally motivated and at equal speed. To be productive, I need to see the chunk of work, work on it till the end, chill a bit, and then start a new one.
However, I know some folks at work who just do their job equally well from 9 to 18, and it seems like it doesn't matter much how and what they get assigned. And they usually stop PRECISELY at 18:00. I cannot do that. If I feel like I want to finish I would work till mental feeling of "okay it is done", then I can come later at work or whatever.
I either only work "just enough to have an update tomorrow", or I go into superman mode 12+ hours a day.
Besides that, I can't perceive work as 8 hours a day of handling a stream of tasks, equally motivated and at equal speed. To be productive, I need to see the chunk of work, work on it till the end, chill a bit, and then start a new one.
However, I know some folks at work who just do their job equally well from 9 to 18, and it seems like it doesn't matter much how and what they get assigned. And they usually stop PRECISELY at 18:00. I cannot do that. If I feel like I want to finish I would work till mental feeling of "okay it is done", then I can come later at work or whatever.
👍8❤2
Maybe not all of you know, but I do not support idea of discipline 😆😆 at least the way I understand it.
It might seem I am very disciplined grinder: system design, 800 problems solved on Leetcode, 8 years doing gym so-so consistently, deep-dives into how something works on the fundamental level just to be better engineer.
It was ALL NOT because of discipline. But because of desire, excitement, passion to achieve stuff/title/status, passion to be the person I want to be, but I never really FORCED myself doing much, since I left school.
I truly believe, this way you live a much happier life. Maybe thats why I really value autonomy and my personal time so that I have buffer to rest when I dont want to do something, and push when I feel like it.
It might seem I am very disciplined grinder: system design, 800 problems solved on Leetcode, 8 years doing gym so-so consistently, deep-dives into how something works on the fundamental level just to be better engineer.
It was ALL NOT because of discipline. But because of desire, excitement, passion to achieve stuff/title/status, passion to be the person I want to be, but I never really FORCED myself doing much, since I left school.
I truly believe, this way you live a much happier life. Maybe thats why I really value autonomy and my personal time so that I have buffer to rest when I dont want to do something, and push when I feel like it.
❤9
andreyka26_se
Maybe not all of you know, but I do not support idea of discipline 😆😆 at least the way I understand it. It might seem I am very disciplined grinder: system design, 800 problems solved on Leetcode, 8 years doing gym so-so consistently, deep-dives into how…
Some beta/gamma weak energy. Ahahaha, but yeah, I never claimed I am strong person😆
Let’s see whether this can sustain long term, for now it is 8 years being working well for me.
Let’s see whether this can sustain long term, for now it is 8 years being working well for me.
❤5