yarukazim
BAN USER- 1of 1 vote
AnswersPUZZLE
- yarukazim in South Africa
Please solve the following puzzle.
Solving Earth
N O R T H +
E A S T +
S O U T H +
W E S T =
E A R T H
There are 10 unique letters in the above puzzle, assign a unique number from 0 to 9 to each letter, so that the equation holds true. An example of a positive result:
SAMPLE SOLUTION
S = 0, R = 1, W = 2, A = 3, H = 4, N = 5, O = 6, E = 7, T = 8, U = 9
Sample Solution
5 6 1 8 4
7 3 0 8
0 6 9 8 4
2 7 0 8
7 3 1 8 4
REQUIREMENTS
Write a computer program, in any language or code you prefer, that will find and output all the possible combinations or solutions to the above puzzle. One solution was provided above, you need to find how many correct solutions exist. Your code should output all the permutations where the equation is solved correctly. The faster the code executes the better it will be. A good benchmark is to try and get your code to complete in less than 50ms. Please bring your code to the interview and expect to walk us through it.| Report Duplicate | Flag | PURGE