Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ heaps_algorithm_iterative.py
File
heaps_algorithm_iterative.py
divide_and_conquer/heaps_algorithm_iterative.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
Heap&
#x27;s (iterative) algorithm returns the list of all permutations possible from a list.
3
It minimizes movement by generating each permutation
from
the previous one
4
by swapping only two elements.
Callers
nothing calls this directly
Calls
2
split
Method · 0.80
heaps
Function · 0.70
Tested by
no test coverage detected