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 0cb6c2b commit bb5cdc5Copy full SHA for bb5cdc5
src/main/java/com/adventofcode/flashk/day07/Equation.java
@@ -30,6 +30,8 @@ private boolean hasSolution(long partialResult) {
30
31
if(operators.isEmpty()) {
32
return partialResult == result;
33
+ } else if(partialResult > result) {
34
+ return false;
35
}
36
37
Integer currentOperator = operators.poll();
0 commit comments