We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4e557 commit c648e2bCopy full SHA for c648e2b
scripts/algorithms/P/Paint House III/Paint House III.cpp
@@ -1,3 +1,4 @@
1
+// Runtime: 95 ms (Top 78.34%) | Memory: 11.2 MB (Top 58.34%)
2
class Solution {
3
int dp[101][22][101];
4
vector<int> h;//m
@@ -31,4 +32,4 @@ class Solution {
31
32
int res=dfs(0,21,t);
33
return res==INT_MAX?-1:res;
34
}
-};
35
+};
0 commit comments