← Questions

Fewest points to pay across reward programs

0
AmazonCodingLast asked May 2026

A user holds points in several programs (airline miles, credit card points, store points). Each program has a balance and a dollar value per point that changes daily. To pay a fixed dollar amount, decide how many points to use from each program so the total number of points spent is as small as possible.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding