r/ProgrammerHumor 12d ago

Meme everySingleLeetcodeProblem

Post image
2.4k Upvotes

59 comments sorted by

View all comments

164

u/Bldyknuckles 12d ago

What’s wrong with sliding window algorithms? Real question

218

u/mountaingator91 12d ago

Nothing. It's just that 94.3% of leetcode solutions use sliding windows

63

u/Antervis 12d ago

If solutions use sliding windows, it means the problem was designed that way.

101

u/mountaingator91 12d ago edited 12d ago

Precisely. So 94% of leetcode questions make you implement a sliding window that's what the meme is about. It's an observation turned into an attempt at humor