diff --git a/algorithms/strings/all_subsequences_of_string.cpp b/algorithms/strings/all_subsequences_of_string.cpp new file mode 100644 index 00000000..0087c098 --- /dev/null +++ b/algorithms/strings/all_subsequences_of_string.cpp @@ -0,0 +1,31 @@ +#include + +using namespace std; + +//Print All Subsequences Of String +void printAllSubsequences(string &input, int i, string t){ + // i to keep track of string indexes + if(i == input.length()){ + cout<> input; + + cout<<"Subsequences of string are: "<