RE: T(n,m) = T(n-1,m) + T(n,m-1)
According to me:
Let size of maze be n x m. Then for each grid we will traverse n x m to check the path .
Therefore T(n,m) =O(n x n x m x m)
I tried it using BFS and DFS where T(n,m) is O( n x m )
Please explain and correct me .
Also How To solve that recursive Equation