Back to problems

Pandigital Sum

Algorithm · Citadel · Easy

A pandigital sum is an addition equation in which the digits 1 through 9 each appear exactly once across all numbers. You must assign each of the nine letters A through I a distinct digit from 1 to 9, forming three 3‑digit numbers: "ABC", "DEF", and "GHI" (where A, D, and G are the hundreds positions). Count how many assignments make the equation true: Return the total number of valid equations. For instance, one working assignment is A = 1, B = 2, C = 4, D = 6, E = 5, F =…

Checking your access…