CombinationGenerator

Functions

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