There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code. Flon's Law

All permutations of a given string

Language Java | Level Intermediate | Category Algorithms | August 3, 2015 9:54 pm


Algorithm Problem Description

Write a program to print all the possible combination of given string.

Output

          	        
          	        

The input string  is  : abc
All possible combinations are :  
a
ab
abc
ac
b
bc
c


          	        
          	        				    


Comments



Please login to add comments.