Jaguar Land Rover | Software Profile | 5 December
Jaguar · Question · Posted Apr 2020
To find the number of paths in a matrix given some constraints : You start at the top left corner and the corner accessible to you depends upon the number stored in that place in the grid. If : Number 1 then you can only go right Number 2 then you can only go down Number 3 then you can in both right and down direction Tell the total number of paths from top left corner to bottom right corner ...
The full answer & interview discussion are available to premium members.
Log in Create a free account