Urgent!!! Problem in C
tiill now what i was doing was allot a digit to each character.....start from 999999......n times(where n is the no of charcters).......till 0......and then check for digits and print the permutation accordingly....
e.g.: String to be permuted: ajkl
then i was assigning:
1 to a
2 to j
3 to k
4 to l
and looping from 9999 to 0 i was checking for all the numbers which contained the digits 1,2,3,4 and accordingly printed the digit....