Hi,
I have an integer array and i want to print all the combinations of this integer array. can you please suggest me the algorithm?
e.g int n[] ={1,2,3}
and its combinations are 123,132,231,213,312,321
problem is that i want the general algorithm which is independent of the array size.