Scribble 4: Free Items

Here’s the problem statement: Given an array of integers that represents supermarket-purchase-points accumulated by customers. The points are arranged in the order of period of customer membership and no 2 members have the same points. Find the minimum number of free items that must be given out to the customers such that every customer receivesContinue reading “Scribble 4: Free Items”

Design a site like this with WordPress.com
Get started