Scala's Expressive Power
February 20, 2016
I saw the following puzzle the other day. Given a set of rings, can you place the numbers 1 through 9 inside each closed area so that the sum of the numbers in each circle is the same? The 1 was already placed for you. Because I’m trying to learn Scala, I thought writing a program to solve this would be good practice for me. I assume that the numbers in each closed area are stored in an Array with elements in the array corresponding to the closed areas from left to right. ...