mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-08 21:19:52 +08:00
Longest Common Subsequence
This commit is contained in:
@@ -10,7 +10,6 @@ struct Item
|
||||
|
||||
float profitPerUnit(Item x)
|
||||
{
|
||||
// cout<<(float)x.profit/(float)x.weight<<"\n";
|
||||
return (float)x.profit/(float)x.weight;
|
||||
}
|
||||
|
||||
@@ -53,13 +52,6 @@ void quickSort(Item arr[], int low, int high)
|
||||
|
||||
|
||||
|
||||
// void show(Item arr[], int size)
|
||||
// {
|
||||
// for (int i=0; i < size; i++)
|
||||
// cout<<arr[i].weight<<"\t"<<arr[i].profit<<"\n";
|
||||
// }
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
cout<<"\nEnter the capacity of the knapsack : ";
|
||||
|
||||
Reference in New Issue
Block a user