Question: This assignment is testing backtracking. Your code should step through, location by location in the star, through the 1 2 locations and try all of
This assignment is testing backtracking. Your code should step through, location by location in
the star, through the locations and try all of the possible numbers that are not yet filled in
Clearly, trying all possibilities leads to possible options, which would take too long to evaluate.
Thus, in some instances, you may be able to decide that even though a number hasnt been placed
yet, its impossible for it to be in the current slot and for the puzzle to be solvable.
Hint: There is a way to determine the magic sum before placing any numbers!
If you code the problem appropriately, then any individual puzzle should be solved in under a
second. Our input has test cases. The total time limit will be set to three times my Arups
solution.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
