Skip to content

Subset Sum (01 Knapsack) #303

@RgnDunes

Description

@RgnDunes

Description of the problem

Adding a function for Subset Sum (01 Knapsack) that would be helpful in solving multiple questions like Subset Sum Problem, Equal Sum Partition Problem, Count of Subsets Sum with given Sum, Minimum Subset Sum Difference, Count of number of Subset with a given difference, Target Sum and many more . Writing this function will help us save a lot of code while coding.

Example of the problem

Problem isn't a bug.

References/Other comments

https://leetcode.com/problems/partition-equal-subset-sum/
https://leetcode.com/problems/target-sum/

Refer these two questions from leetcode which uses Subset Sum concept.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions