2022-09-05 19:27:02 +08:00
|
|
|
# Greedy Algorithm
|
|
|
|
|
|
|
|
2022-09-05 17:32
|
|
|
|
|
|
|
|
> ##### Algorithms:
|
|
|
|
>
|
2022-09-06 20:22:48 +08:00
|
|
|
> #algorithm #greedy
|
2022-09-05 19:27:02 +08:00
|
|
|
>
|
|
|
|
> ##### Difficulty:
|
|
|
|
>
|
|
|
|
> #CS_analysis
|
|
|
|
>
|
|
|
|
> ##### Additional tags:
|
|
|
|
|
|
|
|
##### Related problems:
|
|
|
|
|
|
|
|
```expander
|
|
|
|
tag:#coding_problem tag:#<CHANGE_ME> -tag:#template_remove_me
|
|
|
|
```
|
|
|
|
|
|
|
|
##### Links:
|
|
|
|
|
|
|
|
- [cppreference]()
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### What is Greedy Algorithm?
|
|
|
|
|
|
|
|
### How does Greedy Algorithm work?
|
|
|
|
|
|
|
|
#### Example code
|
|
|
|
|
|
|
|
### Why and when to use it?
|
|
|
|
|
|
|
|
#template_remove_me
|