Print Subsets with Target Sum Dynamic Programming | Subset Sum Problem

preview_player
Показать описание

NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. In this video, we discuss the Print Subset with Target Sum problem or the Print Subset Sum problem using dynamic programming. In this problem,

1. You are given a number n, representing the count of elements.
2. You are given n numbers.
3. You are given a number "tar".
4. You are required to calculate and print true or false, if there is a subset the elements of which add up to "tar" or not.
5. Also, you have to print the indices of elements that should be selected to achieve the given target.
6. You have to print all such configurations.

Рекомендации по теме
Комментарии
Автор

Struggling very hard to understand the concept, thank you for making so simple.
I am able to find the subset for every problem now.

AngelSaanviOfficial
Автор

Thank you Sir for all the efforts. Now printing using BFS seems really easy. I could do this question on my own. Feeling really confident !!

guptapaaras
Автор

Simply amazing!! Best content available on youtube. Pepcoding rocks❤❤

jayrajchoudhury
Автор

You have amazing abilities in explaining stuff. Good job!

hassaankhalid
Автор

Bhai tussi great ho. Big fan. Not everyone knows how to transfer their knowledge to others. I have good understanding of recursion, thanks to your faith expectation formula. I wanted to understand, how do you know when to create 2-D array, when to create 1-D array and when to create two 1-D arrays (for ends with and does not ends with case [paint fence]), i know there is some relation between the two but kaise related hain vo nahi pata.

avnishsingh
Автор

print karna katheen laga ismein thoda, baaki maza aa gaya sawal banane mein. Thank u summet sir

factswithai
Автор

thanku sir jo aap itna achha btate ho
wo bhi free me.

krishnanandroy
Автор

SR dp shuru majboori me kia tha pr ab mzaa aarha hai .

aman
Автор

Sir super content 👌👌
This channel must come to lime light
Some company like cod*ng ninja/co*ing blocks etc
Making money by giving shit in paid course

youme
Автор

Thank u very much sir 🙏
Mehnat kar raha hu sir bahot
Jaise apne guide kiya vaise hi

adarshrai
Автор

Instead of printing the subarray if we have to print the count. Like here we are printing three subset but instead of this if we have to print the count. Then what we have to do

harshitgupta
Автор

A request sir! Can u plz add questions in the strings section?
There were too less videos in ur free resources and strings contain a variety of problems so plz look if u can do the needful!

pixarentertainment
Автор

Sir plz explain scramble string question

_ritiksharma
Автор

Google I m coming for you 😎!
Keep space for me!
End of this year!

liveonyoutube
welcome to shbcf.ru