Skip to content

Commit 3923aa0

Browse files
committed
Added second part of Day 7
1 parent 6c74d24 commit 3923aa0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Day7/operator.h

+7
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ long long _safeSum;
8080
return true;
8181
}
8282

83+
std::string combine = std::to_string(result) + std::to_string(line[index]);
84+
85+
if(checkLine(value, std::stoll(combine), index+1, line))
86+
{
87+
return true;
88+
}
89+
8390
return false;
8491
}
8592

0 commit comments

Comments
 (0)