To measure how far the wombat is from the leaf, let's first find the shortest path (least squares) that the wombat has to move to reach the leaf.
为了测量袋熊离树叶有多远,让我们首先找到袋熊移动够到树叶的最短路线(最少的方格数)。
At each step, the wombat may have two choices to make (while still using the shortest route) : move down or move right.
在每一步中,袋熊可能作出两种选择(同时仍然使用最短路线):向下或向右。
This direction should be the shortest path possible to move outside.
这个方向应该是最短路径可能外移。
应用推荐