About 156,000 results
Open links in new tab
  1. Subset Sum Problem - GeeksforGeeks

    Jul 23, 2025 · Given an array arr [] of non-negative integers and a value sum, the task is to check if there is a subset of the given array whose sum is equal to the given sum.

  2. Subset sum problem - Wikipedia

    SSP can also be regarded as an optimization problem: find a subset whose sum is at most T, and subject to that, as close as possible to T. It is NP-hard, but there are several algorithms that can …

  3. 13.3 Subset sum problem - Hello Algo

    When the element sum equals target, the subset is recorded in the result list. Unlike the permutation problem, elements in this problem can be chosen an unlimited number of times, thus there is no …

  4. Subset Sum Problem - Online Tutorials Library

    Follow the below steps to solve subset sum problem using the backtracking approach −. First, take an empty subset. Include the next element, which is at index 0 to the empty set. If the subset is equal to …

  5. Subset Sum Problem (Visualization and Code Examples)

    Oct 3, 2025 · Learn how to solve the Subset Sum Problem using brute force and dynamic programming approaches, with complete code examples in Python, Java, and C++.

  6. Solving the Subset Sum Problem: A Step-by-Step Guide

    Jan 31, 2025 · The Subset Sum Problem is a classic problem in computer science and mathematics. Given a set of positive integers arr and a target sum w, the task is to determine whether there exists a...

  7. Mastering the Subset Sum Problem - numberanalytics.com

    Jun 14, 2025 · Dynamic Programming is a popular method for solving the Subset Sum Problem exactly. The basic idea is to build a 2D table where the rows represent the elements of the set and the …

  8. Subset Sum Problem | Practice | GeeksforGeeks

    Given an array of positive integers arr [] and a value sum, determine if there is a subset of arr [] with sum equal to given sum. Examples: Explanation: Here there exists a subset with target sum = 9, 4+3+2 = …

  9. Python - Subset Sum Problem - Tutorial Kart

    Given an array of integers and a target sum, the goal is to determine whether there exists a subset of the array that sums exactly to the target. This tutorial will explain the problem, provide sample inputs …

  10. Subset Sum Problem - Scaler Blog

    Sep 30, 2024 · Explanation: There is a subset (1, 2) with sum 3. Example2: Explanation: There is no subset whose sum will be equal to 25. We can approach the Subset Sum Problem recursively by …