Greedy

2 problems using this pattern

About this pattern:

Make locally optimal choices hoping to find a global optimum.

Complexity Range

Time Complexity

O(n) (1 problem)
O(n log n) (1 problem)

Space Complexity

O(1) (1 problem)
O(n) (1 problem)

Problems Using Greedy

← Back to All Patterns