Oh My Algorithm
AlgorithmsExam study
KO
←
Greedy

Algorithms · Greedy

Choose one to explore step by step

Comparing local choices with globally optimal results

Coin Change (Greedy)

O(n)

Choose as many large-denomination coins as possible before smaller ones.

Activity Selection

O(n log n)

Select as many mutually non-overlapping activities as possible.

Huffman Coding

O(n log n)

Assign shorter binary codes to more frequent symbols.

Learning topics

O-M-A/© 2026 OH MY ALGORITHM
AboutPrivacyTerms