← 返回 amazon 的题目列表Grid Pathfinding with Directional Instructions Generation
类型:online_judge
amazon
Given a 2D grid representing a board, where each position can be stepped on. You can move up, down, left, or right on the board and use 'Enter' to confirm using the current position. Design a method to move from the start position to the target position and return the sequence of direction instructions needed.
Example
Input
3 3
0 0
2 2