思路分析:
还是动态规划,不过需要同时判断map数组的状态,然后依照状态进行不同的操作。
import java.util.*;
public class Robot {
public int countWays(int[][] map, int x, int y) {
// write code here
int[][] res = new int[x][y];
res[0][0] =
思路分析:
还是动态规划,不过需要同时判断map数组的状态,然后依照状态进行不同的操作。
import java.util.*;
public class Robot {
public int countWays(int[][] map, int x, int y) {
// write code here
int[][] res = new int[x][y];
res[0][0] =