Beginner · 25 min · 4 steps
Finding the right hub for a parcel when its pincode is new
Rohan Verma, Systems Integration Engineer at RouteSwift Logistics
Rohan Verma is an engineer at RouteSwift Logistics, one of India's biggest parcel delivery companies. It is 5:30 AM on a cold winter morning. The automatic sorting centre in Bilaspur, Haryana has suddenly stopped. In less than 40 minutes, Divert Station 4 pushed 6,400 parcels into the bin for manual checking.
The question
How do we find the right sorting hub for a pincode that is not in our table, without crashing and stopping the conveyor belt?
- Dictionary lookups
- String slicing
- Fallback algorithms
- Defensive programming
The rest of this case study is locked
The data, every step with its code and result, and the final answer open with a pass. A few case studies stay free so you can see how they work.