There’s an old story about the person who wished his computer were as easy to use as his telephone. That wish has come true, since I no longer know how to use my telephone. Bjarne Stroustrup

All possible combinations

Language Java | Level Intermediate | Category Algorithms | August 3, 2015 10:15 am


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.