From 36162cbd2e8a1ab21cf5c3c6f8763b598e15cca5 Mon Sep 17 00:00:00 2001 From: chechunchi Date: Thu, 26 Sep 2024 11:17:12 +0800 Subject: [PATCH] fix format --- leetcode-cc/DifferentWaysToAddParentheses.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/leetcode-cc/DifferentWaysToAddParentheses.hpp b/leetcode-cc/DifferentWaysToAddParentheses.hpp index 82b1fcd..3f7fc53 100644 --- a/leetcode-cc/DifferentWaysToAddParentheses.hpp +++ b/leetcode-cc/DifferentWaysToAddParentheses.hpp @@ -1,7 +1,8 @@ +#include + #include "TestHelper.h" #include "problem.h" #include "solution.h" -#include using namespace std; @@ -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")); @@ -27,7 +28,7 @@ class SDiffWaysToAddParentheses : public ISolution { }; int benchmark() const override { return 0; } -private: + private: vector diffWaysToCompute(string expression) const { unordered_map> memo; return this->compute(expression, memo);