You have a pointer starting at index arrLen.
At each step, you can perform one of the following moves:
Move
Move
Stay in the same position
The pointer must remain within the array boundaries at all times.
Given two integers steps and arrLen, return the number of ways to end up at index steps steps. Since the answer can be large, return it modulo
Constraints:
steps
arrLen
You have a pointer starting at index arrLen.
At each step, you can perform one of the following moves:
Move
Move
Stay in the same position
The pointer must remain within the array boundaries at all times.
Given two integers steps and arrLen, return the number of ways to end up at index steps steps. Since the answer can be large, return it modulo
Constraints:
steps
arrLen