We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8883d17 commit 4a3844aCopy full SHA for 4a3844a
C++/select-cells-in-grid-with-maximum-score.cpp
@@ -78,7 +78,6 @@ class Solution2 {
78
if (empty(lookup[x])) {
79
continue;
80
}
81
- vector<int> new_dp(dp);
82
for (int mask = size(dp) - 1; mask >= 0; --mask) {
83
for (const auto& i : lookup[x]) {
84
if (mask & (1 << i)) {
0 commit comments