MCPcopy Create free account
hub / github.com/HarshCasper/NeoAlgo / nextPermutation

Function nextPermutation

Python/cp/Next_Permutation.py:1–24  ·  view source on GitHub ↗

Function for next Permutation It rearranges numbers into the lexicographically next greater permutation of numbers. If such an arrangement is not possible, it will rearrange it as the lowest possible order (i.e., sorted in ascending order).

(array)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 1

reverseMethod · 0.45

Tested by

no test coverage detected