← Questions

Most days picking distinct products

0
AmazonCodingLast asked Jul 2025

You have quantities of several products. On day i (starting at 1) you must pick exactly i items, each from a different product, out of what is left. Return the largest number of days you can keep going.

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