treemap
Toggle table of contents
2025.0.1
common
Platform filter
common
Switch theme
Search in API
treemap
treemap
/
com.treemap
/
PermutationGenerator
Permutation
Generator
object
PermutationGenerator
Members
Functions
factorial
Link copied to clipboard
fun
factorial
(
n
:
Int
)
:
Double
generate
Next
Permutation
Link copied to clipboard
fun
generateNextPermutation
(
temp
:
IntArray
,
n
:
Int
)
:
IntArray
generate
Next
Product
Link copied to clipboard
fun
generateNextProduct
(
curr
:
IntArray
,
max
:
IntArray
)
:
IntArray
generate
Permutations
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
>
>