Question

What is a common disadvantage of greedy algorithms?

A They always have high time complexity.
B They often require complex data structures.
C They may not always find the globally optimal solution.
D They are difficult to implement.
E They cannot be used for optimization problems.
Practice Next

Hey! Ask a query