Skip to content

[FEATURE REQUEST] Optimized approach to Subset Sum problem #5600

@Rupa-Rd

Description

@Rupa-Rd

What would you like to Propose?

I would like to propose an space optimized solution to the Subset Sum problem.

Issue details

The existing subset sum problem solution's space complexity is O(n*sum).
By optimizing the algorithm/ approach further, we can achieve the space complexity of O(sum) which is more efficient than the existing one.

Algorithm link:
https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/dynamicprogramming/SubsetSum.java

Additional Information

No response

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