Practice Problems
56 Mapped Word Problems56 real-world coding problems mapped directly to the 24 Core Patterns (2–3 problems per pattern). Test your pattern recognition with the optional 90-second timer, or click Reveal breakdown to study the variable glossary, hand-traced example, and line-by-line Python code right away.
PROBLEM 01 / 56
00:90s
Minimum GPU Throughput to Finish Batch in H Hours
You have n inference jobs of varying token sizes. Find the minimum tokens/hour capacity k so all jobs finish within H hours (each job uses whole-hour slots).
CONSTRAINTS: n ≤ 10^5 · job sizes up to 10^9
WHICH CORE PATTERN SOLVES THIS PROBLEM OPTIMALLY?