โ† Directi questions
CodingMedium

Maximize calories of chocolates within budget

Filed under Directi

The question

Given the cost C[i] and calorie content P[i] of n chocolates, find the maximum amount of calories one can take within a given budget W money units.

No write-up yet. Related questions below have one.

Related Directi questions

Collected from public candidate posts and coding forums. Updated Nov 2026.