for eg: today i had a simple problem( some of friends solve it in no time)
You have been given with a N x N matrix(constraint 20) and it is to be filled with 0's(zero) and 1's(one) by user. A zero means you can step on it and one means not allowed. So i had to find a path from (0,0) to (N,N) both of which are zero (to be assumed).
test case
0 1 0 0
0 1 0 1
0 0 0 1
1 1 0 0
so possible path is 0,0-> 1,0-> 2,0-> 2,1-> 2,2-> 3,2-> 3,3
there are many similar problems, i am not able to approach them. help me out how to do these types of problem, i need the approach

New Topic/Question
Reply



MultiQuote




|