diff --git a/print-permutations-of-string b/print-permutations-of-string new file mode 100644 index 0000000..e35bbe3 --- /dev/null +++ b/print-permutations-of-string @@ -0,0 +1,23 @@ +#include +#include +using namespace std; + +void printPermutations(string input,string ans=""){ + + /* Don't write main() function. + * Don't read input, it is passed as function argument. + * Print output as specified in the question + */ + if(input.size() == 0) + { + cout<