Skip to content

push homework 15#13

Merged
nedav347 merged 1 commit into
mainfrom
lesson_15
Jun 13, 2021
Merged

push homework 15#13
nedav347 merged 1 commit into
mainfrom
lesson_15

Conversation

@nedav347

Copy link
Copy Markdown
Owner

homework 15

Comment thread lesson15/lesson15.c
int result = 0;
printf("монеты :");
for (int i = 0; i < COUNT; ++i) {
while (sum >= coins[i]){

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

да, это правильный алгоритм при тех входных данных, которые есть, а в чём, собственно, состоит его "жадность"?

@nedav347 nedav347 merged commit 9ac6525 into main Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants