filmov
tv
Count subsets with given sum | Dynamic Programming

Показать описание
This video explains a very important dynamic programming interview problem which is a variation of 01 knapsack and also a variation of subset sum problem.In this problem, we are given an array and a sum value X, we need to count the number of subsets with the given sum X which can be formed from the array.I have explained the problem using examples.I have shown both the recursive as well as tabulation dynamic programming approach for this problem.I have explained the intuition and also the modifications needed to convert subset sum problem to this problem.If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)
========================================================================
Join this channel to get access to perks:
=======================================================================
USEFUL LINKS:
#subsetsum #01knapsack #dp
========================================================================
Join this channel to get access to perks:
=======================================================================
USEFUL LINKS:
#subsetsum #01knapsack #dp
Комментарии