Top "Permutation" questions

A permutation is an arrangement of objects into a particular order.

Generate permutation using a single stack

Can anyone please explain algorithm to generate the permutations possible when using only a single stack and push and pop …

algorithm stack permutation catalan
All permutations c++ with vector<int> and backtracking

I'm trying generate all permutations of an vector to training backtracking technique but my code don't work for all vectors (…

c++ vector permutation backtracking
Interleave array in constant space

I ran across the following sample job interview question. How can I solve it? Suppose we have an array a1, …

arrays algorithm permutation
What does this list permutations implementation in Haskell exactly do?

I am studying the code in the Data.List module and can't exactly wrap my head around this implementation of …

list haskell permutation combinatorics
Iteratively find all combinations of size k of an array of characters (N choose K)

I am currently working on this problem as a personal project. Basically: Given an array of elements, e.g. E = {1,2,…

algorithm iteration combinations permutation variable-length
Regex to match all permutations of {1,2,3,4} without repetition

I am implementing the following problem in ruby. Here's the pattern that I want : 1234, 1324, 1432, 1423, 2341 and so on i.e. the …

regex permutation lookahead negative-lookahead
Permutate a String to upper and lower case

I have a string, "abc". How would a program look like (if possible, in Java) who permute the String? For …

java permutation uppercase lowercase
Generate permutations of list with repeated elements

In Python, it is quite simple to produce all permutations of a list using the itertools module. I have a …

python permutation