FAILURE MAP
← Case archive

FA-72809 / Check-digit algorithms / Member archive

Missing-digit recovery answers with two unknowns · case 04

Inputs with several unknown digits get a confident single answer.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

Recover the single unknown digit (marked "?") in a Luhn-protected number: input must be at least two characters, ASCII digits and exactly one "?" (else None). Return the digit 0-9 that makes the whole number Luhn-valid; when the unknown sits in a doubled position the needed contribution must be mapped back through the doubling map.

Why this case matters

Customer-service tools reconstruct a smudged or misheard digit of an account number.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression ["??"]0nullFailed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗