Skip to content

Comments

Create Permutaion_by_decrese_conquer.c#4

Open
sspeedy99 wants to merge 1 commit intorafi007akhtar:masterfrom
sspeedy99:patch-1
Open

Create Permutaion_by_decrese_conquer.c#4
sspeedy99 wants to merge 1 commit intorafi007akhtar:masterfrom
sspeedy99:patch-1

Conversation

@sspeedy99
Copy link

/*
Uses the definition of n! to generate the permutations.
Idea:

Remove each item from the given n items one at a time and
append it to remaining (n-1)! permutations.
Efficiency:

O(n!) and as well we have expensive swaps
Strategy used:

Decrease and Conquer(decrease by 1)
*/

/*
Uses the definition of n! to generate the permutations.
Idea:
-----
Remove each item from the given n items one at a time and
append it to remaining (n-1)! permutations.
Efficiency:
-----------
O(n!) and as well we have expensive swaps
Strategy used:
--------------
Decrease and Conquer(decrease by 1)
*/
@rafi007akhtar
Copy link
Owner

Hi, please add an example input and output test case in the comments on top.

And rename the file with corrected spellings if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants