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 918ffc7 commit 6583d73Copy full SHA for 6583d73
1 file changed
C++/expression-add-operators.cpp
@@ -13,7 +13,6 @@ class Solution {
13
void addOperatorsDFS(const string& s, const int& target, const int& pos,
14
const int& operand1, const int& operand2, vector<string> *expr,
15
vector<string> *result) {
16
- // Base Case 1
17
if (pos == s.length()) {
18
if (operand1 + operand2 == target) {
19
result->emplace_back(move(join(*expr)));
0 commit comments