leetcode576+多少种方案出去网格,Dp

https://leetcode.com/problems/out-of-boundary-paths/description/

class Solution {
public:
    int findPaths(int m, int n, int N, int i, int j) {
        vector>> dp(N+1, vector>(m, vector(n, 0)));
        for(int k=1; k<=N; k++){
            for(int x=0; x

leetcode576+多少种方案出去网格,Dp_第1张图片

你可能感兴趣的:(Leetcode)