FA-96749 / Phone number formatting / Member archive
Number list range compression: runs are compared with their start · case 04
A three-number run is emitted as a pair and a singleton.
Case contract
Input a list of digit strings. Deduplicate and sort by (length, text). Consecutive numbers of equal length (each one greater than the previous) form a run. A run of one is emitted as is; a longer run is emitted as START-TAIL where TAIL is END without the prefix it shares with START.
Why this case matters
Number inventories are displayed and exported as compressed ranges; a wrong run boundary or tail misstates which numbers are owned.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| run and singleton | ["5550140-1", "5550142", "5550190"] | ["5550140-2", "5550190"] | Failed |
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 ↗