Combination of "r" strings from "n" strings
I want anyone to answer a code for this question!!
Answer for the above question #java https://code.sololearn.com/cS4oDAW4BUpJ/?ref=app
I think he wants to print some substrings or subsequence from a word //after an example it will be understood clearly
what u mean by combn. of r String from n String ? //provide an example
(and a language)
i think what he want to say is that we have a string of n characters and we can take only r from that n characters and show various combinations of these r characters.
combine means selection different ways "r" names from" n" names and I want a code from c or c++ from this piece of code we can achieve more things
Please provide 2 examples, it is not clear what to do.
Me neither, the maths are complex and the implementation is close to being trivial. I will learn about this when I need it.
This doesn't explain it well to me again.
@swim your explanation is correct anyone can tell the combination but the main problem is to display those all different possible selection of products
That's also easy. Hint: use a set if you may use every product just once.
ex:- we have 10 products in which we have to select 5 products. output: the number of different ways of selection of those 5 products