mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
updated
This commit is contained in:
parent
6111bc424f
commit
dc6dff45ab
@ -26,7 +26,7 @@ def create_state_space_tree(
|
|||||||
:param sequence: The input sequence for which permutations are generated.
|
:param sequence: The input sequence for which permutations are generated.
|
||||||
:param current_sequence: The current permutation being built.
|
:param current_sequence: The current permutation being built.
|
||||||
:param index: The current index in the sequence.
|
:param index: The current index in the sequence.
|
||||||
:param index_used: A list to track which elements are used in the current permutation.
|
:param index_used: list to track which elements are used in permutation.
|
||||||
|
|
||||||
Example 1:
|
Example 1:
|
||||||
>>> sequence = [1, 2, 3]
|
>>> sequence = [1, 2, 3]
|
||||||
|
Loading…
Reference in New Issue
Block a user