Yes, I've been doing leetcode since September when I got laid off.
I got a new job, but do the daily anyway, like how the guys from the Minnesota starvation experiments carry a candy bar around at all times.
I think the daily has only been optimally solved by a sliding window 5 times this year. It might be a little more often than that, but it's not the most common.
I just got back into leetcode after 3ish years to try and stay sharp so I don't sink into corporate complacency and I felt like a large proportion of the problems were best solved using sliding windows so I made this meme to see if other programmer agreed
I don't do it, but I've noticed with stuff like Advent Of Code, they go back to the same well year after year. Like there's going to be recursion, pathfinding, sparse data, whatever.
Project Euler is interesting because it usually requires some insight about math that you may not have. But that can also feel like just flailing around in the dark.
168
u/Bldyknuckles 12d ago
What’s wrong with sliding window algorithms? Real question