Route each packet identifier to one of the active backend servers so the same identifier always maps to the same server, and so adding or removing a server moves as few identifiers as possible. Part 1 — Stable mapping: given the list of active server IDs and a packet identifier (for example a source IP address and port), return the server that handles the packet. With an unchanged server set, the same identifier must always map to the same server. Part 2 — Dynamic servers: servers can be added or removed at any time. Adding server4 should let it receive traffic while keeping as many existing
Maintain the latest inventory state for each location–item pair from distribution-center updates. Support fast quantity, availability and last-update queries across thousands of locations, millions of items and tens of thousands of updates per second. ## Requirements - Receive stock updates from distribution centers. - Maintain the latest state for every location–item pair. - Provide fast lookups of quantity, availability and last-update time. - Address consistency and duplicate or out-of-order updates. - Explain partitioning and scaling decisions. - Retain historical data for analytics.
HeapSeek lists 198 Amazon interview questions reported by candidates: 138 coding, 22 system design, 11 AI-assisted Coding and 27 behavioral. They come from online assessments, phone screens and onsite rounds for SWE, MLE, RS and RE roles, most recently in November 2026. The topics that come up most are hashmap, string, array, greedy, sorting and oop design. Each question has its problem statement, follow-ups, hints and a worked solution for members.