Write a program to display all possible permutations of a given input string. Iif the string contains duplicate characters, you may have multiple repeated results. Input: A string of characters Output: Print al possible permutations of the given string Sample Input: cat Sample Output: cot cto act atc
Answers
Answered by
2
Answer:
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
Explanation:
Plz mark as brainliest...!
Similar questions