// Driver program to test above function int main() { char str[10]; scanf("%s",str); sortedPermutations( str ); return 0; }
int main(){ char str[] = "ABCD"; //getPermutation(str, 0, strlen(str)); sortedPermutations(str); //printf("%s\n", str); }
// Driver program to test above function int main() { char str[] = "ABCD"; sortedPermutations( str ); return 0; }