diff options
Diffstat (limited to 'brainpower.cpp')
-rw-r--r-- | brainpower.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/brainpower.cpp b/brainpower.cpp index 782266f..6708336 100644 --- a/brainpower.cpp +++ b/brainpower.cpp @@ -14,7 +14,7 @@ class Solution { public: - long long mostPoints(vvd(int) & questions) { + long long mostPoints(vvd & questions) { int n = questions.size(); vector<long long> dp(n + 1, 0); for (int i = n - 1; i >= 0; --i) { @@ -30,8 +30,8 @@ public: int main() { Solution obj; - vvd(int) q1 = {{3, 2}, {4, 3}, {4, 4}, {2, 5}}; - vvd(int) q2 = {{1, 1}, {2, 2}, {3, 3}, {4, 4}, {5, 5}}; + vvd q1 = {{3, 2}, {4, 3}, {4, 4}, {2, 5}}; + vvd q2 = {{1, 1}, {2, 2}, {3, 3}, {4, 4}, {5, 5}}; printf("%lld\n", obj.mostPoints(q1)); // expect: 5 printf("%lld\n", obj.mostPoints(q2)); // expect: 7 } |