Tag: Algorithms

Filling in the missing operators

I made a little equation solver for questions like 1_2_3_4_5=6. The numbers are already there; the puzzle is deciding which operations go in the spaces. The code recursively builds combinations of plus, minus, multiply, and divide, puts each combination between the numbers, and evaluates the result. For the default example, it finds answers such as […]

Read post: Filling in the missing operators