Algo Lab - DP
Algo Lab - DP
0-1 Knapsack
Subset sum problem
You are given an array A and a number N. You need to find out if N is a sum of any subset of A or not.
Example:
Given two strings x and y, find the longest common subsequence and its length.
Example:
x = “ABCBDAB”
y = “BDCABA”
x = “ABBACQ”
y = “XAYZMBNNALQCTRQ”