Top "Combinations" questions

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

Algorithm to print all combination of letters of the given string in lexicographical order

I tried to create the code to generate all possible combination of the given string in the lexicographical order: The …

c++ string combinations powerset lexicographic
Complexity when generating all combinations

Interview questions where I start with "this might be solved by generating all possible combinations for the array elements" are …

algorithm language-agnostic big-o time-complexity combinations
Calculate all possible pairs of items from two lists?

I have two arrays: string[] Group = { "A", null, "B", null, "C", null }; string[] combination = { "C#", "Java", null, "C++", null }; I …

c# .net linq combinations
All combinations of elements of two lists in Haskell

Given two lists, [a, b] and [c, d], I'd like to get the following result: [(a,c), (a,d), (b,…

list haskell tuples combinations
What is a good way to implement choose notation in Java?

... preferably in Java. Here is what I have: //x choose y public static double choose(int x, int y) { if (…

java combinations binomial-coefficients
Venn diagram from list of clusters and co-occurring factors

I've got an input file with a list of ~50000 clusters and presence of a number of factors in each of …

r combinations data-visualization factor-analysis
Generating all combinations with repetition using MATLAB

How do I create all k-combinations with repetitions of a given set (also called k-multicombinations or multisubsets) using MATLAB? This …

matlab combinations combinatorics multiset
Algorithm to get all possible string combinations from array up to certain length

What is the best algorithm to get all possible string combinations from a given array with a minimum & maximum …

php arrays algorithm combinations
q.all for angular2 observables

is there something like q.all to resolve all http api requests in angular2? In angular1, I can do something …

angular combinations observable subscribe
How to generate all the permutations of a multiset?

A multi-set is a set in which all the elements may not be unique.How to enumerate all the possible …

string algorithm combinations combinatorics backtracking