Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
chechunchi committed Sep 26, 2024
1 parent 56f0958 commit 36162cb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions leetcode-cc/DifferentWaysToAddParentheses.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include <unordered_map>

#include "TestHelper.h"
#include "problem.h"
#include "solution.h"
#include <unordered_map>

using namespace std;

Expand All @@ -14,7 +15,7 @@ IMPLEMENT_PROBLEM_CLASS(
{"Math"});

class SDiffWaysToAddParentheses : public ISolution {
public:
public:
size_t problemId() const override { return 241; }
string name() const override {
return ("Solution for " + string("Different Ways to Add Parentheses"));
Expand All @@ -27,7 +28,7 @@ class SDiffWaysToAddParentheses : public ISolution {
};
int benchmark() const override { return 0; }

private:
private:
vector<int> diffWaysToCompute(string expression) const {
unordered_map<string, vector<int>> memo;
return this->compute(expression, memo);
Expand Down

0 comments on commit 36162cb

Please sign in to comment.