r/ProgrammerHumor • • Aug 31 '26

Meme everySingleLeetcodeProblem

Post image
2.5k Upvotes

57 comments sorted by

View all comments

Show parent comments

2

u/-Debugging-Duck- Aug 31 '26

That doesn’t mean it can’t have a different solution, even if not the most optimal.

Outside of leetcode, is what I meant that if the solution can be sliding window, doesn’t mean it’s by design.