To print all the possible permutations of the String which are different, that is, no permuatations are repeated
A permutation, also called an “arrangement number” or “order,” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A string of length n has n! permutation.
Distinct Permutations Of the String
Feature ✅
Description
To print all the possible permutations of the String which are different, that is, no permuatations are repeated A permutation, also called an “arrangement number” or “order,” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A string of length n has n! permutation.
Example
Input: str[] = "ABCA" Output: AABC AACB ABAC ABCA ACBA ACAB BAAC BACA BCAA CABA CAAB CBAA
Checklist:
Contributors are supposed to mention their coding language while asking for assignment