please explain the details
Please explain the details
You have four options:
- You can come to the new row from left and going right.
- You can come to the new row from left and going left.
- You can come to the new row from right and going left.
- You can come to the new row from right and going right.
You have to calculate the minimum of all the above 4 possible steps.
Now, try to solve the problem.