Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Backtracking/AllPermutations.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <bits/stdc++.h>
using namespace std;

//permutation
void permute(string & str,int l, int r) {
if(l = r) {
if(l == r) {
cout << str << "\n";
}
for(int i=l;i<=r;i++) {
Expand Down
4 changes: 2 additions & 2 deletions Backtracking/RatInMaze.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ int mat[100][100],sol[100][100];
int isSafe(int i,int j,int n) {
return (i < n && j < n && mat[i][j]==1);
}

//printing the matrix
void print(int n) {
for(int i=0;i<n;i++)
{
Expand Down Expand Up @@ -47,4 +47,4 @@ int main(void) {
for(int j=0;j<n;j++)
cin >> mat[i][j];
solve(0,0,n);
}
}