FA-94847 / Warehouse slotting and bin packing / Member archive
ABC velocity: SKU that crosses 80% demoted · case 02
The SKU whose picks carry the cumulative share over 80% is classified B although the contract makes it A.
Case contract
Input [[sku, weekly_picks]]. Rank by picks descending then sku ascending. SKUs with equal picks form a tie group whose cumulative prior share is the picks of strictly faster groups. picks 0 -> D (dead stock); prior share < 80% -> A; < 95% -> B; else C. Return [[sku, class]] in input order.
Why this case matters
Velocity classes drive which SKUs are slotted into forward pick areas.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| generated mix 3 | [["S24", "B"], ["S10", "C"], ["S13", "B"], ["S21", "A"], ["S27", "C"], ["S15", "A"], ["S26", "B"], ["S09", "A"]] | [["S24", "A"], ["S10", "C"], ["S13", "A"], ["S21", "A"], ["S27", "C"], ["S15", "A"], ["S26", "B"], ["S09", "A"]] | 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 ↗