Content-Length: 264651 | pFad | http://github.com/glennj/exercism.io/tree/main/python/alphametics

26 exercism.io/python/alphametics at main · glennj/exercism.io · GitHub
Skip to content

Latest commit

 

History

History

alphametics

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Alphametics

Welcome to Alphametics on Exercism's Python Track. If you need help running the tests or submitting your code, check out HELP.md.

Instructions

Write a function to solve alphametics puzzles.

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.

Each letter must represent a different digit, and the leading digit of a multi-digit number must not be zero.

Write a function to solve alphametics puzzles.

Source

Created by

  • @behrtam

Contributed to by

  • @BethanyG
  • @cmccandless
  • @Dog
  • @iandexter
  • @ikhadykin
  • @N-Parsons
  • @nikamirrr
  • @rfuentescruz
  • @sukovanej
  • @tqa236
  • @yawpitch








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/glennj/exercism.io/tree/main/python/alphametics

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy