andreyka26_se
Daily 366th day streak Don't be scared. The problem is essentially easy-mid (if you have solved 3-4 game theory daily before). Good problem, has pattern, I recommend. https://leetcode.com/problems/stone-game-iv/description/?envType=daily-question&envId=2026…
We haven't done that for long time. But for new people: if you want to learn how to convert top-down dynamic programming solution to bottom up -> I have designed "template" with instructions that you can blindly follow and get the right solution in 99%
Check comments in today's daily.
https://t.me/programming_space/2033?comment=5430
Check comments in today's daily.
https://t.me/programming_space/2033?comment=5430
Telegram
andreyka26_se in andreyka26-se
Then you imagine stack trace, we start from larger stones variable and go down to smaller. So our for loop should be reversed: from the smaller to the larger.
All the base cases (we don't have them here honestly) we represent as default values,e.g. cache[0]…
All the base cases (we don't have them here honestly) we represent as default values,e.g. cache[0]…
❤5
andreyka26_se
So, for new people, I'm doing leetcode for a long time. And sometimes I'm pasting here useful templates / approaches for leetcode questions (as they are needed for interview). Today given good 2dp problem we will see how to convert top-down to bottom up (without…
A bit more detailed
top-down dp => bottom-up dp instructions for other daily problem (with base cases)❤3
Hahaha, I want to be more toxic, but it will be inappropriate.
Yes,
Writing a poem or book - is easy, it is just words.
Writing a song or music is easy - it is just notes
Writing new formula in math is easy - it is just numbers and letters
Writing a newly found dna, or element - is easy - again, just letters
“Yes communicating with people and agree on design and architecture is the hardest”
Dude, from the same argument it is easy - it is just saying words, and drawing rectangles.
Fuck my life. I dont know, but I legit have feeling these folks never wrote anything than 2 get endpoints.
===
Ofc the problem lies in definition, I literally cannot decouple writing code from what it means. Because writing is the operating over ideas and underlying hardware which is implied you should know. And the lower you go - the more you know , and the more it becomes fucking “coding is NOT easy”
I wish to see them doing “coding is easy” on random opensource issue in 1 hour. It is just code, cmmon
Yes,
Writing a poem or book - is easy, it is just words.
Writing a song or music is easy - it is just notes
Writing new formula in math is easy - it is just numbers and letters
Writing a newly found dna, or element - is easy - again, just letters
“Yes communicating with people and agree on design and architecture is the hardest”
Dude, from the same argument it is easy - it is just saying words, and drawing rectangles.
Fuck my life. I dont know, but I legit have feeling these folks never wrote anything than 2 get endpoints.
===
Ofc the problem lies in definition, I literally cannot decouple writing code from what it means. Because writing is the operating over ideas and underlying hardware which is implied you should know. And the lower you go - the more you know , and the more it becomes fucking “coding is NOT easy”
I wish to see them doing “coding is easy” on random opensource issue in 1 hour. It is just code, cmmon
3🔥3❤1👍1
andreyka26_se
Hahaha, I want to be more toxic, but it will be inappropriate. Yes, Writing a poem or book - is easy, it is just words. Writing a song or music is easy - it is just notes Writing new formula in math is easy - it is just numbers and letters Writing a newly…
Maybe I clown, but to me all such people seemed like:
“I want to be IT guy” , I am doing this for half a year and so I will reassure myself “oh it is easy I can do it” to feel better and relieve anxiety about layoffs or something.
I have been this guy, 4-5 years ago. When I was doing backend on my .net, and literally putting jsons into postgres. Thought, that by reading uncle bob and DDD I know everything.
And now I am dealing with kernel low level network stuff in c, c++ and rust… no, coding is not easy.
“I want to be IT guy” , I am doing this for half a year and so I will reassure myself “oh it is easy I can do it” to feel better and relieve anxiety about layoffs or something.
I have been this guy, 4-5 years ago. When I was doing backend on my .net, and literally putting jsons into postgres. Thought, that by reading uncle bob and DDD I know everything.
And now I am dealing with kernel low level network stuff in c, c++ and rust… no, coding is not easy.
❤2👍1
Daily 367th day streak
Not hard to do, but hard to understand what needs to be done (check comments I will simplify description)
No pattern though, skippable.
https://leetcode.com/problems/smallest-missing-integer-greater-than-sequential-prefix-sum/description/?envType=daily-question&envId=2026-08-11
#daily #easy #nopattern
Not hard to do, but hard to understand what needs to be done (check comments I will simplify description)
No pattern though, skippable.
https://leetcode.com/problems/smallest-missing-integer-greater-than-sequential-prefix-sum/description/?envType=daily-question&envId=2026-08-11
#daily #easy #nopattern
❤3
Thinking about writing the article about Prague -> Dublin relocation, the process, what you should know, pitfalls, pros/cons of country (how I see it) etc?
Pls thumb up/down if you are interested, and leave questions you’d like to be covered
Pls thumb up/down if you are interested, and leave questions you’d like to be covered
56👍80🔥7❤4👎1
andreyka26_se
Thinking about writing the article about Prague -> Dublin relocation, the process, what you should know, pitfalls, pros/cons of country (how I see it) etc? Pls thumb up/down if you are interested, and leave questions you’d like to be covered
Wow people, I am surprised, so many reactions.
Thanks, will serve as good motivation to get it done faster.❤️
Thanks, will serve as good motivation to get it done faster.❤️
❤11
Daily 368th day streak
I haven't solved yet as was working whole day. But it seems for now as nice one for sliding window (not confirmed), I just have an idea.
Will solve once I go back home
UPD: yes it is sliding window that is extremely rare on Daily, and it is amazing problem for that patter. I definitely recommend!
https://leetcode.com/problems/length-of-longest-subarray-with-at-most-k-frequency/?envType=daily-question&envId=2026-08-12
#daily #medium #pattern
I haven't solved yet as was working whole day. But it seems for now as nice one for sliding window (not confirmed), I just have an idea.
Will solve once I go back home
UPD: yes it is sliding window that is extremely rare on Daily, and it is amazing problem for that patter. I definitely recommend!
https://leetcode.com/problems/length-of-longest-subarray-with-at-most-k-frequency/?envType=daily-question&envId=2026-08-12
#daily #medium #pattern
🔥6❤1
Forwarded from Влад Тен
YouTube
Why Tech CEOs Are Quietly Cancelling Their AI Plans
Tech CEOs are quietly cancelling their AI plans, and the reason isn’t that artificial intelligence stopped working. It’s that companies are discovering how expensive, legally risky, and difficult to control these systems become once they move from demos into…
❤1
Daily 369th day streak
Segment tree💀💀💀
Good luck :)
Problem is pretty long, takes time and I would say hard, even if you know segment trees (I failed fully complete it on my own)
https://leetcode.com/problems/longest-substring-of-one-repeating-character/?envType=daily-question&envId=2026-08-13
#daily #hard #pattern
Segment tree💀💀💀
Good luck :)
Problem is pretty long, takes time and I would say hard, even if you know segment trees (I failed fully complete it on my own)
https://leetcode.com/problems/longest-substring-of-one-repeating-character/?envType=daily-question&envId=2026-08-13
#daily #hard #pattern
❤1
andreyka26_se
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…
you might need it, guys.
But today's solution is far more complicated than what we had
But today's solution is far more complicated than what we had
❤1
By the way, update about AI first project.
Today (yesterday) was one more day of 3 engineers were "yes, we have no fucking idea why we get 95% connections not being established, while 5% were sometimes".
Managers are all amazed by that update, but this is legit what we were able to get (and it is not only noname mid devs like me, but one staff💀)
Networks are fun, but not with AI slop projects
Today (yesterday) was one more day of 3 engineers were "yes, we have no fucking idea why we get 95% connections not being established, while 5% were sometimes".
Managers are all amazed by that update, but this is legit what we were able to get (and it is not only noname mid devs like me, but one staff💀)
Networks are fun, but not with AI slop projects
😁5❤2
Daily 370th day streak
Amazing problem. Definitely recommended. Has pattern.
The solution is just a form of solution from "Daily 368th day".
https://leetcode.com/problems/maximum-length-substring-with-two-occurrences/description/?envType=daily-question&envId=2026-08-14
#daily #easy #pattern
Amazing problem. Definitely recommended. Has pattern.
The solution is just a form of solution from "Daily 368th day".
https://leetcode.com/problems/maximum-length-substring-with-two-occurrences/description/?envType=daily-question&envId=2026-08-14
#daily #easy #pattern
❤1
andreyka26_se
It is , I guess, 5th day of d bugging fucking AI project by 5 engineers cross timezones… First time in 5 last years of career I want to go to vacation
We found the root cause. I mean one senior in US (blindly or not) did a fix and it helped. However it shouldn’t.
Then I investigated why it helped? And it took me 4 hours of checking how rust runtime and thread pool works internally, what kernel does with socket.accept(), socket.recv(). What is the difference between blocking recv() and non-blocking .recv() via epoll.wait() (essentially how your async I/O works in high languages)
Do you want to see simple use case with deep dives into kernel and why it happened(probably short video or/and post here)?
Then I investigated why it helped? And it took me 4 hours of checking how rust runtime and thread pool works internally, what kernel does with socket.accept(), socket.recv(). What is the difference between blocking recv() and non-blocking .recv() via epoll.wait() (essentially how your async I/O works in high languages)
Do you want to see simple use case with deep dives into kernel and why it happened(probably short video or/and post here)?
❤18🔥10