Collision Risk for Six-Digit Amazon Locker Pickup Codes
Last updated: November 29, 2026
Quick Overview
Each active Amazon Locker parcel gets a random six-digit pickup code. If codes only need to be unique within one locker bank, how many active parcels can a bank hold before a duplicate code becomes likely, and what does that imply for code design?
Amazon
November 29, 20260
0
0 solved
Each active Amazon Locker parcel gets a random six-digit pickup code. If codes only need to be unique within one locker bank, how many active parcels can a bank hold before a duplicate code becomes likely, and what does that imply for code design?
A birthday-problem question in the style of an Amazon technical screen for engineers on Hub and Locker systems. The interviewer checks that you can quantify collision probability, use the square-root approximation, and turn the math into a design decision.
What the Interviewer Expects
- Recognizes the birthday problem structure
- Derives the $1 - e^{-n^2/2N}$ approximation
- Finds the 50% point near $1.18\sqrt N$
- Distinguishes a collision anywhere from a collision with one specific code
- Proposes a design fix such as checking for uniqueness at issue time
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- What is the chance a guessed code opens some compartment?
- How does the answer change for alphanumeric 6-character codes?
- Why not use sequential codes?
- How would rate limiting at the kiosk change the guessing risk?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Code space . A bank has simultaneously active parcels with independently random codes. I want as a function of ....
Approach
The probability all codes are distinct is . Using , that is about . Set the collision probability to a target and solve for ....