Write a program to display all possible permutations of a given input string--if the string contains duplicate characters, you may have multiple repeated results. Input should be string.
Output should be a word per line.
Here is a sample for the input cat
السؤال
Samo Leban
C++ Programming Language
Write a program to display all possible permutations of a given input string--if the string contains duplicate characters, you may have multiple repeated results. Input should be string.
Output should be a word per line.
Here is a sample for the input cat
cat
cta
act
atc
tac
tca
1 جواب على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.