Brute force magic squares
-
30-10-2019 - |
Question
Basically I have a 3 x 3 grid that is filled with two digit numbers 00 - 99. Some of the numbers are given as input the rest are unknown. What are some suggestions on how to solve such a problem with brute force in C?
EDIT: Sorry I forgot part of the problem. Every row and column and diagonal must add up to the same number. I don't want any code just some ideas to get started with algorithm
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow