Fall SalePremium questions, over 25% offUnlock all premium questions for over 25% off
Diagonal Server Redirect Path
Hard
Question
Picture a set of servers placed at distinct integer points of an infinite 2D grid; locations[i] = [x, y] is where server i is. When an HTTP request comes in, it is first handled by the server at locations[0], and then the redirects in redirectRecords pass it from server to server, one redirect at a time.
...
Asked at:Amazon
More Amazon interview questions
- Prefix Frequency Block Partitioneasy
- Smallest Lexicographic Palindromemedium
- Connect Points In Unbounded Matrixhard
- Find Oldest One-Time Visitormedium
- All String Reorganizationseasy
- Assemble String From Blocksmedium
- Reversi Single Move Simulationmedium
- Design Card Draw Gamemedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.