Updated dynamic_knapsack.c

This commit is contained in:
Abreu 2021-12-16 12:37:36 -03:00
parent 8b227f3fa1
commit 97be8117ff
No known key found for this signature in database
GPG Key ID: 64835466FF55F7E1
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ void printSelection (Item *list, int **results, int size, int capacity) {
(float) list[index[i]].value / list[index[i]].weight);
i--;
}
free(index);
printf("Capacidade restante da mochila: %d\n", capacity);
printf("Valor total armazenado: %d\n", total);