diff options
Diffstat (limited to 'count_possible_routes.cpp')
-rw-r--r-- | count_possible_routes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/count_possible_routes.cpp b/count_possible_routes.cpp index 3ab5f17..228fb2e 100644 --- a/count_possible_routes.cpp +++ b/count_possible_routes.cpp @@ -19,7 +19,7 @@ class Solution { public: int countRoutes(vector<int> &locations, int start, int finish, int fuel) { int n = locations.size(), mod = 1e9 + 7, ans = 0; - vvd(int) dp(n, vector<int>(fuel + 1)); + vvd dp(n, vector<int>(fuel + 1)); dp[start][fuel] = 1; for (int f = fuel; f >= 0; f--) for (int i = 0; i < n; i++) |