Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine whether a permutation is an alternating permutation
Test whether {4,7,2,3,1,6,5} is alternating:
In[1]:= |
Out[1]= |
The complement of a reversed alternating permutation is an alternating permutation:
In[2]:= |
Out[2]= |
This work is licensed under a Creative Commons Attribution 4.0 International License