Jump-path obstacle course
Grid Algorithms
Starting at (0,0), reach (24,24) by repeated jumps of (1,2) or (2,1). A jump may land only on points with both coordinates nonnegative, and may NOT land on a point whose first coordinate is odd and second coordinate is divisible by 4. How many jump sequences reach the goal?
Solve using mathematics, algorithms, or your own code offline. Submit only the final integer here—no program, expression, graph, or written proof.
Check your answer without signing in. Sign in to save your progress.
How to approach this problem
Topologically process the grid because both jump coordinates increase. Add counts from the two valid predecessor locations; test the restriction on the landing point, not on crossed cells.
Worked example with different values
With jumps (1,2) and (2,1), reaching (3,3) has two possible orders in an empty grid. Blocking (1,2) leaves one.
Apply the same reasoning to the challenge. This example is a separate practice problem.
Learn the technique: Dynamic programming and grid paths