The French army is trapped, sorrounded in backwards direction (South and West directions) by enemy traps and ambushes. You are now constrained to move forward only (North, East and North-East).
The battle-ground is in a form of a 2-D rectangular lattice spanning from (0,0) to (m,n). In order to make a formidable strategy and safely retreat, it is necessary to visualize the field. Now to visualize the field, the first required is the number of all possible paths from your initial position (although relative, consider it to be 0,0) to the end point (m,n).
However, to be cautious, you must only take a single step at a time to check from any traps and ambushes in the next step. If you take more than 1 step at a time, the enemy will know your location and the mission will fail.
They turn to you, The Army officer and an avid mathematics aficionado to solve the problem.
Given two whole numbers, m and n, find the number of paths with the mentioned restriction, to prepare a strategy.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers8
Suggested Problems
-
1247 Solvers
-
It dseon't mettar waht oedrr the lrettes in a wrod are.
2079 Solvers
-
Detect a number and replace with two NaN's
199 Solvers
-
11527 Solvers
-
Is this triangle right-angled?
6388 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!