Halloween Sale
Unlock all premium questions for over 30% off
Assign Books To Shelves
Medium
Question
A head librarian is setting up a new way to shelve the books that arrive in each shipment. Shelves are indexed from 0 to numShelves - 1 (there are numShelves of them), and at the start none of them holds a book.
...
Asked at:Amazon
More Amazon interview questions
- Compress Nodes In N-ary Treemedium
- Frequent Events Within 24 Hoursmedium
- Find Smallest Available Hubmedium
- Assemble String From Blocksmedium
- All String Reorganizationseasy
- Find Oldest One-Time Visitormedium
- Smallest Lexicographic Palindromemedium
- Connect Points In Unbounded Matrixhard
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.