Available question text
Each enemy requires ceil(health[i]/power) hits and deals damage[i] per second while alive, so total damage equals the weighted sum of completion times. The problem reduces to a single-machine scheduling problem (minimize sum w_j C_j) with processing times = hits and weights = damage, optimally solved by ordering enemies by the ratio damage[i]/hits_i (Smith's rule).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3273. Minimum Amount of Damage Dealt to Bob
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source