Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ permutations.py
File
permutations.py
data_structures/arrays/permutations.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
permute_recursive(nums: list[int]) -> list[list[int]]:
2
""
"
3
Return all permutations.
4
Callers
nothing calls this directly
Calls
1
permute_backtrack
Function · 0.85
Tested by
no test coverage detected