a is 0, b is 1, c is 2, and so on up to j for 9. A word reads as the number written with those digits: "cab" is 201, and "aad" is 3 (leading zeros are dropped).
Given three words first, second and total, return True if the number for first plus the number for second equals the number for total, and False otherwise.first="bc", second="d", total="bf" → True
"bc" → 12, "d" → 3, "bf" → 15, and 12 + 3 = 15.
first="aab", second="aj", total="ba" → True
Leading as are leading zeros: 1 + 9 = 10.
first="j", second="j", total="bh" → False
9 + 9 = 18, but "bh" stands for 17.
a to jfirst="bc", second="d", total="bf"
True
Run checks the first 3 tests in your browser. Submit checks all 58 tests on the server, hidden ones included.