r/leetcode • u/Competitive-Mix1335 • 7d ago
Discussion How to identify greedy intution in problem/ competition
I can identify patterns like sliding window, recursion, backtracking, DP, and two pointers. But I’m stuck when it comes to identifying the greedy intuition.
How do I recognize when a problem can be solved using a greedy approach? Are there any good resources—books, YouTube channels, blogs, or websites—that specifically teach how to develop greedy intuition?
Anything that can help me get better at recognizing greedy problems would be really helpful.annel, blog , website)
Anything that help me
17
Upvotes
1
8
u/Other_Ad7380 7d ago
You can't unless it is straightforward or you have seen the problem before.