Strings Permutations

5

1 votes
String, Permutation and combination
Problem

You are given string str which consists of alphabets. Your task is to print all the permutations of the given strings.

 

Input Format

First and only line contains a string whose permutations need to be displayed

Output Format

All possible permutations should be displayed in a single line with single spaces between them

Time Limit: 5
Memory Limit: 256
Source Limit:
Explanation

There are only 6 combinations available for string abc.

Editor Image

?