Sha256: 0f0dde9368d1e44af3ff003c82e9f35946295291091f48d2b244de9253712c58
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
{ "solve": { "description": "Solve the alphametics puzzle", "cases": [ { "description": "solve short puzzle", "puzzle": "I + BB == ILL", "expected": { "I": 1, "B": 9, "L": 0 } }, { "description": "solve long puzzle", "puzzle": "SEND + MORE == MONEY", "expected": { "S": 9, "E": 5, "N": 6, "D": 7, "M": 1, "O": 0, "R": 8, "Y": 2 } }, { "description": "solve puzzle with multiplication", "puzzle": "IF * DR == DORI", "expected": { "I": 8, "F": 2, "D": 3, "R": 9, "O": 1 } }, { "description": "solve puzzle with exponents", "puzzle": "PI * R ^ 2 == AREA", "expected": { "P": 9, "I": 6, "R": 7, "A": 4, "E": 0 } }, { "description": "solution must have unique value for each letter", "puzzle": "A == B", "expected": null }, { "description": "leading zero solution is invalid", "puzzle": "ACA + DD == BD", "expected": null } ] } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trackler-1.0.0 | common/exercises/alphametics/canonical-data.json |