diff --git a/alphametics.md b/alphametics.md new file mode 100644 index 0000000000..d446c7f3a1 --- /dev/null +++ b/alphametics.md @@ -0,0 +1,25 @@ +[Alphametics](https://en.wikipedia.org/wiki/Alphametics) is a puzzle where +letters in words are replaced with numbers. + +For example `SEND + MORE = MONEY`: + +``` + S E N D + M O R E + +----------- +M O N E Y +``` + +Replacing these with valid numbers gives: + +``` + 9 5 6 7 + 1 0 8 5 + +----------- +1 0 6 5 2 +``` + +This is correct because every letter is replaced by a different number and the +words, translated into numbers, then make a valid sum. + +Write a function to solve alphametics puzzles. diff --git a/alphametics.yml b/alphametics.yml new file mode 100644 index 0000000000..e89122e86a --- /dev/null +++ b/alphametics.yml @@ -0,0 +1,2 @@ +--- +blurb: "Write a function to solve alphametics puzzles."