Card Range Fill
Stripe interview questions · Medium · OA round · reported 1× · 6 tests
Take sorted, non-overlapping card-number ranges that may have holes between them, and stretch each range's upper end so it reaches right up to where the following range starts.
The full question, tests and reference solution are available with a plan that includes Stripe.
Run your code with Ctrl+Enter to see results.