# PermutationGenerator

object PermutationGenerator

## Functions

factorial
Link copied to clipboard
fun factorial(n: Int): Double
generateNextPermutation
Link copied to clipboard
fun generateNextPermutation(temp: IntArray, n: Int): IntArray
generateNextProduct
Link copied to clipboard
fun generateNextProduct(curr: IntArray, max: IntArray): IntArray
generatePermutations
Link copied to clipboard
fun <T> generatePermutations(list: List<T>, r: Int): List<List<T>>
permutations
Link copied to clipboard
fun permutations(n: Int): List<List<Int>>