← Mastercard questions
CodingMedium

Purchase N pens as cheaply as possible from multiple shops

Filed under Mastercard

The question

Find the minimum cost to purchase N pens given a list of shops, where each shop offers a distinct stock quantity, price per pen, and a fixed delivery fee.

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

Related Mastercard questions

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