---
title: "Discussion on \"Subset Sum Problem\" | Hashnode"
description: "Discussion on \"Subset Sum Problem\". Problem\nGiven an array of positive integers arr[] and a value sum, determine if there is a subset of arr[] with sum equal to given sum. (link)\nExamples:\nInput: arr[] = [3, 34, 4, 12, 5, 2], sum = 9\nOutput: true \nExplanation: Here there exists a subse..."
url: "https://hashnode.com/posts/subset-sum-problem/691b2de42cd7052af34c9539"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Subset Sum Problem](https://chetan77.hashnode.dev/subset-sum-problem?utm_source=hashnode&utm_medium=feed)

Problem 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. (link) Examples: Input: arr\[\] = \[3, 34, 4, 12, 5, 2\], sum = 9 Output: true Explanation: Here there exists a subse...

Nov 17, 2025 · 3 min read · chetan77.hashnode.dev  
Read the article

-   [#subset-sum-problem](https://hashnode.com/tag/subset-sum-problem)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#dynamic-programming](https://hashnode.com/tag/dynamic-programming)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#2d](https://hashnode.com/tag/2d)

## Written by

[Chetan Datta](https://hashnode.com/@chetan77)

@chetan77 · Hyderabad, India

  
[View profile](https://hashnode.com/@chetan77)

Software Engineer

I share my learnings here. Thanks for reading.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
