CodingReported in a candidate post, Sep 2017
Maximize books picked from two weighted stacks
Filed under Magnitude Software
The question
Two stacks of books with weights and a maximum total weight W; each pick comes from the top of either stack. Maximize the number of books picked (example S1: 3 6 3 2 5, S2: 15 1 1 1 1 1 1 9, W: 15 gives 7).
No write-up yet. Related questions below have one.
Related Magnitude Software questions
Collected from public candidate posts and coding forums. Updated Nov 2026.