nagasekhar
Programmer
I want an algorithm which would give me all the combinations possible with the given numbers. (ie)
for ex: if i give 1,2,3 , it should print all the possible combinations that can be made with those three digits (i.e) 123, 132, 213,231,312,321.
for 1,2,3,4.. it is 4123, 4132, 4213,4231,4312,4321, 1234,1243,1324,1423,1432,1342,2134,2143,2431,2431,2341,2314,
3124,3142,3214,3241,3421,3412.
(i.e) n! number of combinations for the given n digits...
Its urgent . Thank you
for ex: if i give 1,2,3 , it should print all the possible combinations that can be made with those three digits (i.e) 123, 132, 213,231,312,321.
for 1,2,3,4.. it is 4123, 4132, 4213,4231,4312,4321, 1234,1243,1324,1423,1432,1342,2134,2143,2431,2431,2341,2314,
3124,3142,3214,3241,3421,3412.
(i.e) n! number of combinations for the given n digits...
Its urgent . Thank you