FAILURE MAP
← Case archive

FA-47304 / Bounded deques / Member archive

Deque range swap returns destination length as source length · case 04

Deque range swap returns destination length as source length.

Member previewVariant 4 · 3 implementations · 6 checks per implementation

Case contract

Swap two ordered, disjoint half-open ranges within a bounded deque. Preserve each range and middle order, permit unequal lengths, and remap stable cursors through the permutation.

Why this case matters

Controlled bounded deque implementation model with explicit storage and lifecycle observations.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
0[[7, 8, 5, 6, 4, 9], [4, 2, 0, 1, 5], [3, 4, 1, 2, 0, 5], 2, 2][[7, 8, 5, 6, 4, 9], [4, 2, 0, 1, 5], [3, 4, 1, 2, 0, 5], 1, 2]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 ↗