feat: removal of unused variables

This commit is contained in:
Lam Haoyin 2022-01-04 21:40:12 +08:00
parent 80a949f68c
commit a3ac26c627
No known key found for this signature in database
GPG Key ID: 8C089CB1A2B7544F
1 changed files with 0 additions and 2 deletions

View File

@ -8,11 +8,9 @@ class Solution {
private: private:
// dp[][][0]: previous moved is mouse, [1] cat. // dp[][][0]: previous moved is mouse, [1] cat.
inline static int d[50][50][2]; inline static int d[50][50][2];
inline static bool vis[50][50][2];
public: public:
static int catMouseGame(const std::vector<std::vector<int>>& graph) { static int catMouseGame(const std::vector<std::vector<int>>& graph) {
std::memset(d, -1, sizeof d); std::memset(d, -1, sizeof d);
std::memset(vis, 0, sizeof vis);
const auto n = graph.size(); const auto n = graph.size();
for (int i = 1; i < 50; ++i) { for (int i = 1; i < 50; ++i) {
// initial states // initial states