Description Usage Arguments Value Examples
Given a permutation and a position, swap positions i and i+1
1 | inversion(perm, i)
|
perm |
a permutation |
i |
position of the permutation |
The permutation in the input with an inversion at the specified position
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.