Top "Combinations" questions

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

JavaScript - Generating combinations from n arrays with m elements

I'm having trouble coming up with code to generate combinations from n number of arrays with m number of elements …

javascript permutation combinations
android lock password combinations

I just came across with this interesting question from my colleague. I'm trying now, but meanwhile I thought I could …

passwords combinations combinatorics
PHP array combinations

I have an array of 7 numbers (1,2,3,4,5,6,7) and I want to make pairs of 5 numbers like (1,2,3,4,5),(1,2,3,4,6,),(1,2,3,4,7) . (1,2,3,4,5) is equal to (4,5,3,1,2) I would …

php arrays combinations
How to generate all permutations of a string in PHP?

I need an algorithm that return all possible combination of all characters in one string. I've tried: $langd = strlen($input); …

php string algorithm combinations permutation
Generate all possibles combinations of an array with a length within a given range

How can I generate all possible combinations of elements of an array with a length within a given range? E.…

ruby arrays combinations
Combination of List<List<int>>

I've a List of this type List> that contains this List<int> A = new List<int&…

c# linq generics list combinations
AES128 vs AES256 using bruteforce

I came across this: I don't understand how AES128 is stronger than AES256 in a brute force attack, or how …

encryption cryptography aes combinations brute-force
How to loop through all the combinations of e.g. 48 choose 5

Possible Duplicate: How to iteratively generate k elements subsets from a set of size n in java? I want to …

java combinations combinatorics poker
How to generate the power-set of a given List?

I'm trying to generate a collection of all 2^N - 1 possible combinations of a given List of length N. The …

java algorithm list combinations
Combination of two arrays in Ruby

What is the Ruby way to achieve following? a = [1,2] b = [3,4] I want an array: => [f(1,3) ,f(1,4) , f(2,3) ,f(2,4)]

ruby combinations