Question DSA-GRDY-0002
EasyWhich problem is solved optimally by a greedy approach?
- A.
Activity selection (maximum non-overlapping intervals)
- B.
Longest common subsequence
- C.
Show answer and explanation
Answer: A
Choosing the activity that ends earliest is always safe.