Mastering Greedy Algorithms with LeetCode Problems.
Greedy algorithms are a fundamental paradigm in computer science, often providing efficient solutions for a wide range of optimization problems. By solving a variety of problems categorized by difficulty, you can develop a deep understanding of greedy strategies, enhancing your problem-solving skills. Here, we explore a curated list of LeetCode problems that serve as a comprehensive learning path, guiding you from the basics to advanced applications of greedy algorithms.
Easy Problems
- Two City Scheduling
- Assign Cookies
- Lemonade Change
- Best Time to Buy and Sell Stock II
- Is Subsequence
- Queue Reconstruction by Height
- Maximum Subarray
- Minimum Number of Arrows to Burst Balloons
Medium Problems
- Partition Labels
- Task Scheduler
- Non-overlapping Intervals
- Jump Game
- Car Pooling
- Jump Game II
- Gas Station
- Video Stitching
Hard Problems
- Candy
- Minimum Number of Refueling Stops
- Race Car
- Split Array Largest Sum
- Strong Password Checker
- Text Justification
- Minimum Window Substring
- Maximize Score After N Operations