let's say you have a bookshelf of total height H that you can partition into as many levels as you want. you want to maximize the number of books you can fit on it.

books all have the same thickness but they are equally likely to be be any height between 0 and H.

how do you partition it? (i don't know the answer!)

@bcrypt I usually have one shelf for larger books and then split the rest of the space among shelves roughly 12" tall. Seems to work well :)