Click4Ai

436.

Easy

GridWorld Environment Problem

**Example:** Imagine you are a robot in a grid world, and you have to navigate from the top-left corner to the bottom-right corner.

**Constraints:** The grid world is a 5x5 grid, and the robot can move up, down, left, or right.

Test Cases

Test Case 1
Input: [[0, 0], [0, 1], [0, 2], [0, 3], [0, 4]]
Expected: 4
Test Case 2
Input: [[1, 0], [1, 1], [1, 2], [1, 3], [1, 4]]
Expected: 4
+ 3 hidden test cases