There was an error while loading. Please reload this page.
2 parents eca3f4b + 44f4658 commit d51b34eCopy full SHA for d51b34e
C++/Algorithms/Backtracking/Permutation_of_string.cpp
@@ -3,7 +3,7 @@ using namespace std;
3
4
// Function to find all Permutations of a given string str[i..n-1]
5
// containing all distinct characters
6
-void permutations(string str, int i, int n)
+void permutations(string str, int i, int n,int j, int k )
7
{
8
// base condition
9
if (i == n - 1)
0 commit comments