diff --git a/algorithms/CPlusPlus/Backtracking/rat-in-a-maze-problem.cpp b/algorithms/CPlusPlus/Backtracking/rat-in-a-maze-problem.cpp new file mode 100644 index 00000000..0be8f73e --- /dev/null +++ b/algorithms/CPlusPlus/Backtracking/rat-in-a-maze-problem.cpp @@ -0,0 +1,60 @@ +#include +using namespace std; + +bool issafe(int** arr, int x, int y, int n){ + if(x>n; + int** arr=new int*[n]; + for(int i=0; i>arr[i][j]; + } + } + int** solArr=new int*[n]; + for(int i=0; i