DAA EXP-10_190
DAA EXP-10_190
2200290110196
CSIT-5C2
DAA EXP-10
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int n, W;
// Number of items
cout << "Enter the number of items: ";
cin >> n;
// Capacity of knapsack
cout << "Enter the capacity of the knapsack: ";
cin >> W;
cout << "Maximum value that can be obtained: " << result << endl;
return 0;
}
OUTPUT:-
cout << "Longest Common Subsequence: " << lcs << endl;
}
int main() {
string X, Y;
// Input two strings
cout << "Enter the first string: ";
cin >> X;
cout << "Enter the second string: ";
cin >> Y;
int m = X.length();
int n = Y.length();
return 0;
}