3 ms·
Great article! Really hits home for me because I spent a year working in the children's room of a local library. I was that guy who helped people find books, st
by peter_l_downs 14y ago
Great article! Really hits home for me because I spent a year working in the children's room of a local library. I was that guy who helped people find books, stacked books on shelves, and checked people out.
The worst of the three jobs was definitely stacking books back on shelves. I'd start with a cart filled with books. OP has it totally right — they are grouped (sometimes, but not always!) by general type — but within those type they're usually randomly arranged.
At this point in time I'd been programming for around a year and a half and was just starting to try to learn about different search algorithms. If only I'd realized that I was sorting every day! Looking back, I found the fastest method (for me) to be quicksort. Go figure!