Top "Combinations" questions

A combination is a selection of objects from a larger collection in no particular order.

All Possible Combinations of a list of Values

I have a list of integers List<int> in my C# program. However, I know the number of …

c# combinations
Making all possible combinations of a list

I need to be able to make a list that contains all possible combinations of an inputted list. For example …

python list combinations
Generating all combinations of a list in python

Here's the question: Given a list of items in Python, how would I go by to get all the possible …

python list combinations
Algorithm to get all the combinations of size n from an array (Java)?

Right now I'm trying to write a function that takes an array and an integer n, and gives a list …

java combinations combinatorics
Generate list of all possible combinations of elements of vector

I am trying to generate all possible combinations of 0 and 1's in a vector of length 14. Is there an easy …

r combinations
How to count possible combination for coin problem

I am trying to implement a coin problem, Problem specification is like this Create a function to count all possible …

java algorithm combinations
Generate all combinations from multiple lists

Given an unknown amount of lists, each with an unknown length, I need to generate a singular list with all …

java list algorithm combinations cartesian-product
Algorithm to generate all combinations of a string

I found a link online that shows an algorithm to generate all combinations of a string: http://www.mytechinterviews.com/…

java algorithm combinations
Smart way to generate permutation and combination of String

String database[] = {'a', 'b', 'c'}; I would like to generate the following strings sequence, based on given database. a b …

java algorithm combinations permutation
Find all combinations of a list of numbers with a given sum

I have a list of numbers, e.g. numbers = [1, 2, 3, 7, 7, 9, 10] As you can see, numbers may appear more than once in …

python algorithm python-3.x combinations subset-sum