Lesson 64 of 73 1 min

Greedy Algorithms: Curated Practice Problems

A hand-picked list of 10 essential LeetCode problems to master the Greedy approach.

Key Patterns to Master

  1. Interval Sorting: Sorting by end time to maximize non-overlapping events.
  2. Max Reach: Tracking the furthest possible index.
  3. Local Optimization: Making the best choice at each step without backtracking.

Hand-Picked Problems

Problem Difficulty Key Pattern
Assign Cookies Easy Simple Greedy
Jump Game Medium Max Reach
Gas Station Medium Running Balance
Non-overlapping Intervals Medium Sorting by End Time
Task Scheduler Medium Priority Frequency
Minimum Number of Arrows to Burst Balloons Medium Intervals
Two City Scheduling Medium Relative Cost
Partition Labels Medium Last Occurrence
Queue Reconstruction by Height Medium Sorting + Insertion
Candy Hard Two-pass Greedy

Interview Tip

Always be ready to answer: "Why does the Greedy choice work here instead of DP?"

Want to track your progress?

Sign in to save your progress, track completed lessons, and pick up where you left off.