question 7
This commit is contained in:
1 parent
13c4a4fb4a
commit
bea4f844a8
1 file changed
+1
-2
@@ -180,7 +180,6 @@ func problem7B(input string) int64 {
|
||||
}
|
||||
|
||||
func isSolvable(row *ProblemRow, operands ...Operand) bool {
|
||||
fmt.Println("")
|
||||
for node := range createAllPossibleChain(row.numbers, operands...) {
|
||||
if process(node) == row.res {
|
||||
return true
|
||||
@@ -192,6 +191,6 @@ func isSolvable(row *ProblemRow, operands ...Operand) bool {
|
||||
func main() {
|
||||
|
||||
fmt.Printf("The answer to question 7A is %d \n", problem7A(realInput))
|
||||
fmt.Printf("The answer to question 7B is %d \n", problem7B(mockInput))
|
||||
fmt.Printf("The answer to question 7B is %d \n", problem7B(realInput))
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user