Skip to content
Today's problem
Algorithms
Algorithms
Roadmap
Problems
Articles
CS
Algorithms
/
Greedy Algorithms
Optimization
Intermediate
Greedy Algorithms
Solve optimization problems by making locally optimal choices at each step.
4
Algorithms
✓
Custom inputs
Algorithms in this module
01
Activity Selection
O(N log N)
time
·
O(N)
space
▶ Visualize
02
Huffman Coding
O(N log N)
time
·
O(N)
space
▶ Visualize
03
Fractional Knapsack
O(N log N)
time
·
O(1)
space
▶ Visualize
04
Job Sequencing
O(N²)
time
·
O(N)
space
▶ Visualize
Every Greedy Algorithms page
Greedy Algorithms
Activity Selection
Coin Change
Huffman Coding
Job Sequencing
Fractional Knapsack