# CombinationGenerator

object CombinationGenerator

## Functions

combination
Link copied to clipboard
fun combination(r: Int, n: Int): List<List<Int>>
generateCombinations
Link copied to clipboard
fun <T> generateCombinations(list: List<T>, r: Int): List<List<T>>
generateNextCombination
Link copied to clipboard
fun generateNextCombination(temp: IntArray, n: Int, r: Int): IntArray
nCr
Link copied to clipboard
fun nCr(n: Int, r: Int): Double